]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
fixup: avoid spurious failure for 'parallel-tests-many.test'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 22 Feb 2012 10:30:54 +0000 (11:30 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 22 Feb 2012 10:30:54 +0000 (11:30 +0100)
* tests/parallel-tests-many.test: Adjust grepping of "make check"
and "make recheck" output to match the new format of the testsuite
summary.  Remove redundant 'set -e' call since we are at it.

tests/parallel-tests-many.test

index d14b09e9e211753f00701496ce831913ab5934cf..752ba15a432b9bff80bd1b08ed382f80e6dfa47b 100755 (executable)
@@ -21,8 +21,6 @@
 am_parallel_tests=yes
 . ./defs || Exit 1
 
-set -e
-
 cat >> configure.ac << 'END'
 AC_OUTPUT
 END
@@ -139,7 +137,8 @@ rm -f $deepdir/* || Exit 99
 $MAKE check > stdout || { cat stdout; Exit 1; }
 cat stdout
 
-grep "All $count tests" stdout
+grep "^# TOTAL: $count$" stdout
+grep "^# PASS:  $count$" stdout
 
 grep "^PASS: .*$tname-[0-9][0-9]*\.test" stdout > grp
 ls -1 $deepdir | grep '\.log$' > lst
@@ -164,7 +163,8 @@ cat stdout
 grep "^PASS: .*$tname-1\.test" stdout
 grep "^PASS: .*$tname-2\.test" stdout
 test `LC_ALL=C grep -c "^[A-Z][A-Z]*:" stdout` -eq 2
-grep "All 2 tests" stdout
+grep "^# TOTAL: 2$" stdout
+grep "^# PASS:  2$" stdout
 
 # "make clean" might ignore some failures, so we prefer to also grep its
 # output to ensure that no "Argument list too long" error was encountered.