diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-05 09:01:25 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-09-13 12:07:55 +0200 |
commit | 5a556d28fd207e932015302c631b717af13cfb8d (patch) | |
tree | d86503cf7fed2319946fef49ebb4cf94fb0f9342 /commands | |
parent | fe6fd13905579639cbfb259921be3156e7552b9a (diff) | |
download | barebox-5a556d28fd207e932015302c631b717af13cfb8d.tar.gz |
test: self: provide selftest_is_running()
For debugging during self-test run, it can be useful to enable select
logging only when the selftest is running. Provide a selftest_is_running()
function that can be used to determine whether a test is running.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220905070125.537483-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/selftest.c b/commands/selftest.c index a10f1467fe..bb62575aa7 100644 --- a/commands/selftest.c +++ b/commands/selftest.c @@ -24,7 +24,7 @@ static int run_selftest(const char *match, bool list) if (match && strcmp(test->name, match)) continue; - err |= test->func(); + err |= selftest_run(test); matches++; } |