summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-03-29 10:30:40 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-02 07:32:48 +0200
commit6c23b012b9d3be56eb46337a009815136a9cc87d (patch)
treef7054bdb043de136cd38b76715c6b2a488b1b975 /tests
parentef88dfba812b9179341d5fb7dd21e1adfa30fc0a (diff)
downloadbison-6c23b012b9d3be56eb46337a009815136a9cc87d.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/local.mk8
1 files 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)