]> 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>
Tue, 8 Apr 2025 19:52:11 +0000 (20:52 +0100)
(cherry picked from commit 66c2a2e42ac5d6cbd526f4bba31dcd3218550cde)
(cherry picked from commit 830b30814a0079d9689261c8916692cf7e9dfd56)

src/test/test-execute.c

index 1a28f8f29122e74a6c05e584d2f74ad0e1f775a6..c73f79320bd5ca91feb7576c8eabbd08133556db 100644 (file)
@@ -1417,9 +1417,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);