bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tests: recheck: work properly when the test suite was interrupted


From: Akim Demaille
Subject: tests: recheck: work properly when the test suite was interrupted
Date: Wed, 1 Apr 2020 08:21:14 +0200

commit af19fd7e0f3f4f8ea345d4cee0935ed5d8234c3e
Author: Akim Demaille <address@hidden>
Date:   Sun Mar 29 10:30:40 2020 +0200

    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.

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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]