]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-execute: prominently show which test we are about to enter
authorLennart Poettering <lennart@poettering.net>
Thu, 13 Mar 2025 10:49:13 +0000 (11:49 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 22 Mar 2025 15:51:44 +0000 (15:51 +0000)
(cherry picked from commit 66c2a2e42ac5d6cbd526f4bba31dcd3218550cde)

src/test/test-execute.c

index de575ec1e6d7616f50f96523f18cdcfdd1b851d3..ddb6ef3d7438a7bf2bfcbc98e50e0d6bbd02686f 100644 (file)
@@ -1416,9 +1416,10 @@ static void run_tests(RuntimeScope scope, char **patterns) {
         start = now(CLOCK_MONOTONIC);
 
         for (const test_entry *test = tests; test->f; test++)
-                if (strv_fnmatch_or_empty(patterns, test->name, FNM_NOESCAPE))
+                if (strv_fnmatch_or_empty(patterns, test->name, FNM_NOESCAPE)) {
+                        log_info("Starting %s.", test->name);
                         test->f(m);
-                else
+                else
                         log_info("Skipping %s because it does not match any pattern.", test->name);
 
         finish = now(CLOCK_MONOTONIC);