diff options
author | Ross Burton <ross.burton@intel.com> | 2018-12-14 17:10:42 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-15 11:48:07 +0000 |
commit | fbcd81d38f644380d8d409db029666135639ce80 (patch) | |
tree | 2d29fa0ccf3b1fb1402257247abf3113fc109b18 /meta/recipes-devtools/tcltk/tcl | |
parent | f19efc867328ea308463d81a6d5ef1a9050851b3 (diff) | |
download | poky-fbcd81d38f644380d8d409db029666135639ce80.tar.gz |
tcl: in run-ptest show output if a test fails
If a test fails the log has useful information, so include that in the output.
(From OE-Core rev: f66f533eb9974cdefaacfee00d019c65e0d80b9e)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/tcltk/tcl')
-rw-r--r-- | meta/recipes-devtools/tcltk/tcl/run-ptest | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest index dadba655f2..22bb69ae0d 100644 --- a/meta/recipes-devtools/tcltk/tcl/run-ptest +++ b/meta/recipes-devtools/tcltk/tcl/run-ptest | |||
@@ -1,8 +1,13 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | for i in `ls tests/*.test |awk -F/ '{print $2}'`; \ | 3 | for i in `ls tests/*.test | awk -F/ '{print $2}'`; do |
4 | do TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.tmp 2>&1; \ | 4 | TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.log 2>&1 |
5 | grep -q "^Files with failing tests:" $i.tmp; \ | 5 | grep -q "^Files with failing tests:" $i.log |
6 | if [ $? -eq 0 ]; then echo "FAIL: $i"; \ | 6 | if [ $? -eq 0 ]; then |
7 | else echo "PASS: $i"; rm -f $i.tmp; fi; \ | 7 | echo "FAIL: $i" |
8 | cat $i.log | ||
9 | else | ||
10 | echo "PASS: $i" | ||
11 | fi | ||
12 | rm -f $i.log | ||
8 | done | 13 | done |