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>
diff --git a/test/test-main.c b/test/test-main.c
index da5b07c..e4f4268 100644
--- a/test/test-main.c
+++ b/test/test-main.c
@@ -622,7 +622,7 @@
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++;