From af19fd7e0f3f4f8ea345d4cee0935ed5d8234c3e Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 29 Mar 2020 10:30:40 +0200 Subject: [PATCH] tests: recheck: work properly when the test suite was interrupted * tests/local.mk (recheck): Look at the per-test logs, not the overall log, which, when interrupted, contains only information about... the tests that passed. --- tests/local.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/local.mk b/tests/local.mk index 6bdf0516..b7e7cc59 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -96,10 +96,10 @@ clean-local-tests: .PHONY: recheck recheck: $(RUN_TESTSUITE_deps) - $(RUN_TESTSUITE) \ - $$(perl -n \ - -e 'if (/Summary of the failures/../Detailed failed tests/)' \ - -e '{ /^ *[0-9]+:/ && s/:.*//s && print }' %D%/testsuite.log) + $(RUN_TESTSUITE) \ + $$(perl -n \ + -e 'eof && /^(\d+).*: FAILED/ && print "$$1 "' \ + %D%/testsuite.dir/*/testsuite.log) check-local: $(RUN_TESTSUITE_deps) $(RUN_TESTSUITE)