diff options
author | Tom Rini <trini@konsulko.com> | 2018-04-23 16:17:36 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-23 16:17:36 -0400 |
commit | 49f8849de9cf4855f48a85f015f9f80250a3b2aa (patch) | |
tree | 9f01297ac517494dc0a5fa83998b2494ee785d07 /lib/efi_selftest/efi_selftest.c | |
parent | ec360e64862ae0ab271296e786917e5f9a04e9fb (diff) | |
parent | e83222bfc3ad2d7b2ecb1f1e559d78ec0d1f03cd (diff) |
Merge tag 'signed-efi-2018.05' of git://github.com/agraf/u-boot
Patch queue for efi - 2018-04-23
Some last minute fixes for 2018.05. Most of them are minor fixes. On
top we have some functional improvements for the device path logic
which should also help us be more compatible.
Diffstat (limited to 'lib/efi_selftest/efi_selftest.c')
-rw-r--r-- | lib/efi_selftest/efi_selftest.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/efi_selftest/efi_selftest.c b/lib/efi_selftest/efi_selftest.c index fc5ef254a1..fd4fee726f 100644 --- a/lib/efi_selftest/efi_selftest.c +++ b/lib/efi_selftest/efi_selftest.c @@ -77,20 +77,20 @@ void efi_st_exit_boot_services(void) */ static int setup(struct efi_unit_test *test, unsigned int *failures) { - int ret; - - if (!test->setup) + if (!test->setup) { + test->setup_ok = EFI_ST_SUCCESS; return EFI_ST_SUCCESS; + } efi_st_printc(EFI_LIGHTBLUE, "\nSetting up '%s'\n", test->name); - ret = test->setup(handle, systable); - if (ret != EFI_ST_SUCCESS) { + test->setup_ok = test->setup(handle, systable); + if (test->setup_ok != EFI_ST_SUCCESS) { efi_st_error("Setting up '%s' failed\n", test->name); ++*failures; } else { efi_st_printc(EFI_LIGHTGREEN, "Setting up '%s' succeeded\n", test->name); } - return ret; + return test->setup_ok; } /* @@ -200,7 +200,7 @@ void efi_st_do_tests(const u16 *testname, unsigned int phase, continue; if (steps & EFI_ST_SETUP) setup(test, failures); - if (steps & EFI_ST_EXECUTE) + if (steps & EFI_ST_EXECUTE && test->setup_ok == EFI_ST_SUCCESS) execute(test, failures); if (steps & EFI_ST_TEARDOWN) teardown(test, failures); |