diff options
author | Zhangjin Wu <falcon@tinylab.org> | 2023-07-06 12:12:28 +0300 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2023-08-23 05:40:22 +0300 |
commit | 4beb9be811d7c20b3b5ae8c07720d8f5cf066e1e (patch) | |
tree | b201bfeb0ce5c9a6987c182756ed8dadf4d7664b /tools/testing/selftests/nolibc/Makefile | |
parent | 7d92e89363755978c616c8d9d9f8961989e62be8 (diff) | |
download | linux-4beb9be811d7c20b3b5ae8c07720d8f5cf066e1e.tar.xz |
selftests/nolibc: report: add newline before test failures
a newline is inserted just before the test failures to avoid mixing the
test failures with the raw test log.
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/testing/selftests/nolibc/Makefile')
-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 1da4e07f0b3b..d31d6cea82e2 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -84,7 +84,7 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS := -s -REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ +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");; \ printf("\nSee all results in %s\n", ARGV[1]); }' |