diff options
author | Ross Burton <ross.burton@arm.com> | 2021-07-09 18:00:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-13 14:27:53 +0100 |
commit | e15e97bdcf78743d4befce181c7b4a365e7b2c04 (patch) | |
tree | 6e2f7e877604d2e049f02b530bf1135279e96ef7 /meta/recipes-devtools/tcltk | |
parent | 34d9ae6d3e6f3e4f6eed0462f67d54ff3b7c7635 (diff) | |
download | poky-e15e97bdcf78743d4befce181c7b4a365e7b2c04.tar.gz |
tcl: detect tests that error as well as fail
The grep was only looking for tests which explicitly fail, and wasn't
catching tests that error.
(From OE-Core rev: 25f198e03e2cc3e969d704b7a56e207933fc0ffc)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/tcltk')
-rw-r--r-- | meta/recipes-devtools/tcltk/tcl/run-ptest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest index 22bb69ae0d..6d52f34a9f 100644 --- a/meta/recipes-devtools/tcltk/tcl/run-ptest +++ b/meta/recipes-devtools/tcltk/tcl/run-ptest | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | for i in `ls tests/*.test | awk -F/ '{print $2}'`; do | 3 | for i in `ls tests/*.test | awk -F/ '{print $2}'`; do |
4 | TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.log 2>&1 | 4 | TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.log 2>&1 |
5 | grep -q "^Files with failing tests:" $i.log | 5 | grep -q -F -e "Files with failing tests:" -e "Test files exiting with errors:" $i.log |
6 | if [ $? -eq 0 ]; then | 6 | if [ $? -eq 0 ]; then |
7 | echo "FAIL: $i" | 7 | echo "FAIL: $i" |
8 | cat $i.log | 8 | cat $i.log |