mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 14:56:03 +00:00
test: Correct display of failing test
This should show the test name, not the selected name, since the user may be running all tests, in which case 'select_name' is NULL Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Tom Rini <trini@konsulko.com> # rpi_3, rpi_4, rpi_arm64, am64x_evm_a53, am64-sk
This commit is contained in:
parent
88db4fc5fe
commit
4f570b36aa
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ static int ut_run_tests(struct unit_test_state *uts, const char *prefix,
|
|||
for (i = 0; i < uts->runs_per_test; i++)
|
||||
ret = ut_run_test_live_flat(uts, test);
|
||||
if (uts->fail_count != old_fail_count) {
|
||||
printf("Test %s failed %d times\n", select_name,
|
||||
printf("Test %s failed %d times\n", test_name,
|
||||
uts->fail_count - old_fail_count);
|
||||
}
|
||||
found++;
|
||||
|
|
Loading…
Add table
Reference in a new issue