test: Drop duplicate restore of DM state
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:18 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
This code is present twice. Fix it so that it is only executed once.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/test-main.c

index 5931e94..9ab090b 100644 (file)
@@ -635,9 +635,5 @@ int ut_run_list(const char *category, const char *prefix,
        else
                printf("Failures: %d\n", uts.fail_count);
 
-       /* Best efforts only...ignore errors */
-       if (has_dm_tests)
-               dm_test_restore(uts.of_root);
-
        return ret;
 }