]> code.ossystems Code Review - openembedded-core.git/commitdiff
tcl: detect tests that error as well as fail
authorRoss Burton <ross.burton@arm.com>
Fri, 9 Jul 2021 17:00:10 +0000 (18:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Jul 2021 13:24:48 +0000 (14:24 +0100)
The grep was only looking for tests which explicitly fail, and wasn't
catching tests that error.

Signed-off-by: Ross Burton <ross.burton@arm.com>
meta/recipes-devtools/tcltk/tcl/run-ptest

index 22bb69ae0db0a1a8bd43841590cac1ff3cf3da56..6d52f34a9fd2220d0f5b98ba7239d39db772634a 100644 (file)
@@ -2,7 +2,7 @@
 
 for i in `ls tests/*.test | awk -F/ '{print $2}'`; do
     TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.log 2>&1
-    grep -q "^Files with failing tests:" $i.log
+    grep -q -F -e "Files with failing tests:" -e "Test files exiting with errors:" $i.log
     if [ $? -eq 0 ]; then
         echo "FAIL: $i"
         cat $i.log