]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-execute: prominently show which test we are about to enter 36719/head
authorLennart Poettering <lennart@poettering.net>
Thu, 13 Mar 2025 10:49:13 +0000 (11:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Mar 2025 13:22:13 +0000 (14:22 +0100)
src/test/test-execute.c

index c5d0707e136d88af78b57d7e67046ea3e166620e..5b89a450b5f4f14aa7955e7f20616ed5a3775859 100644 (file)
@@ -1420,9 +1420,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);