diff options
author | Thomas Weißschuh <[email protected]> | 2024-08-07 23:51:43 +0200 |
---|---|---|
committer | Thomas Weißschuh <[email protected]> | 2024-08-12 22:22:13 +0200 |
commit | ddae1d7fab8c5dc5d12da120dc410c4f374d37c3 (patch) | |
tree | 7a8b735fe6a75aa5359eb1bd61553848062bb190 | |
parent | e098eebb63cb1c03813559b5db9da4451ba3a318 (diff) |
selftests/nolibc: report failure if no testcase passed
When nolibc-test is so broken, it doesn't even start,
don't report success.
Reviewed-by: Shuah Khan <[email protected]>
Acked-by: Willy Tarreau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Thomas Weißschuh <[email protected]>
-rw-r--r-- | tools/testing/selftests/nolibc/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 3fbabab46958..46dfbb50fae5 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -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: |