]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/nolibc: report failure if no testcase passed
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 7 Aug 2024 21:51:43 +0000 (23:51 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 12 Aug 2024 20:22:13 +0000 (22:22 +0200)
When nolibc-test is so broken, it doesn't even start,
don't report success.

Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20240807-nolibc-llvm-v2-7-c20f2f5fc7c2@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/Makefile

index 3fbabab469580c11a9087fe7ce5082fd7054ca22..46dfbb50fae54d7f46b37ba51f2fd6092a2402e1 100644 (file)
@@ -157,7 +157,7 @@ LDFLAGS :=
 
 REPORT  ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{if (!f) printf("\n"); f++; print;} /\[SKIPPED\][\r]*$$/{s++} \
                END{ printf("\n%3d test(s): %3d passed, %3d skipped, %3d failed => status: ", p+s+f, p, s, f); \
-               if (f) printf("failure\n"); else if (s) printf("warning\n"); else printf("success\n");; \
+               if (f || !p) printf("failure\n"); else if (s) printf("warning\n"); else printf("success\n");; \
                printf("\nSee all results in %s\n", ARGV[1]); }'
 
 help: