aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-12-14 17:10:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-15 11:47:59 +0000
commitf66f533eb9974cdefaacfee00d019c65e0d80b9e (patch)
tree7d12b5b566fed3952a65f0a0675263e328670242 /meta/recipes-devtools
parent691e540e724c609cceeb9379e1252a05abebd5b1 (diff)
downloadopenembedded-core-contrib-f66f533eb9974cdefaacfee00d019c65e0d80b9e.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. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/tcltk/tcl/run-ptest15
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 @@
#!/bin/sh
-for i in `ls tests/*.test |awk -F/ '{print $2}'`; \
- do TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.tmp 2>&1; \
- grep -q "^Files with failing tests:" $i.tmp; \
- if [ $? -eq 0 ]; then echo "FAIL: $i"; \
- else echo "PASS: $i"; rm -f $i.tmp; fi; \
+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
+ if [ $? -eq 0 ]; then
+ echo "FAIL: $i"
+ cat $i.log
+ else
+ echo "PASS: $i"
+ fi
+ rm -f $i.log
done