File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
result
2
2
stderr
3
3
bitops.0 /bitops
4
- hm2-idrom /realtime.log. *
4
+ hm2-idrom /realtime.log *
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ realtime stop
25
25
LOG=realtime.log
26
26
retval=0
27
27
28
+ # clean up after previous runs
29
+ test -f ${LOG} .* && rm -f ${LOG} .*
30
+
28
31
TEST_PATTERN=0
29
32
while [ ! -z " ${Error[$TEST_PATTERN]} " ]; do
30
33
@@ -39,12 +42,24 @@ while [ ! -z "${Error[$TEST_PATTERN]}" ]; do
39
42
40
43
realtime stop
41
44
42
- if [ ` egrep -e " ${Error[$TEST_PATTERN]} " realtime.log | wc -l` != 1 ] ; then
43
- echo failed test $TEST_PATTERN : pattern " '${Error[$TEST_PATTERN]} '" not found
45
+ if [ ` egrep -e " ${Error[$TEST_PATTERN]} " realtime.log | wc -l` != 1 ]; then
46
+ echo failed test $TEST_PATTERN : pattern not found:
47
+ echo " ${Error[$TEST_PATTERN]} "
44
48
cp $LOG ${LOG} .$TEST_PATTERN # save logs from errored tests
45
49
retval=1
46
50
fi
47
51
TEST_PATTERN=$(( $TEST_PATTERN + 1 ))
48
52
done
49
53
rm -f $LOG
54
+
55
+ # if there's a failure, dump the log to stdout for debugging in buildbot
56
+ if test $retval = 1; then
57
+ for f in ${LOG} .* ; do
58
+ echo " ************************************************************"
59
+ echo " Failed test logfile $f :"
60
+ cat $f
61
+ echo
62
+ done
63
+ fi
64
+
50
65
exit $retval
You can’t perform that action at this time.
0 commit comments