aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-18 20:09:15 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:09 -0600
commit801587bd771835bf1341646c3f6b490469199e2b (patch)
treecd1b4eea856bba994886248d3111b8abd7930958 /test
parentf86db10cc56b9c8b73cb1bb94c5172c96958ef29 (diff)
downloadu-boot-801587bd771835bf1341646c3f6b490469199e2b.zip
u-boot-801587bd771835bf1341646c3f6b490469199e2b.tar.gz
u-boot-801587bd771835bf1341646c3f6b490469199e2b.tar.bz2
dm: test: Show the test filename when running
Show the filename of the test being run. Skip the path and show just the base name. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/test-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dm/test-main.c b/test/dm/test-main.c
index 2848673..10d2706 100644
--- a/test/dm/test-main.c
+++ b/test/dm/test-main.c
@@ -75,8 +75,9 @@ static int dm_test_destroy(struct unit_test_state *uts)
static int dm_do_test(struct unit_test_state *uts, struct unit_test *test)
{
struct sandbox_state *state = state_get_current();
+ const char *fname = strrchr(test->file, '/') + 1;
- printf("Test: %s\n", test->name);
+ printf("Test: %s: %s\n", test->name, fname);
ut_assertok(dm_test_init(uts));
uts->start = mallinfo();