File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
.github/workflows/scripts Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,11 @@ for i in $(seq 1 $VMs); do
46
46
test -s $file && mv -f $file uname.txt
47
47
48
48
file=" vm$i /tests-exitcode.txt"
49
- test -s $file || echo 1 > $file
49
+ if [ ! -s $file ]; then
50
+ # XXX - add some tests for kernel panic's here
51
+ # tail -n 80 vm$i/console.txt | grep XYZ
52
+ echo 1 > $file
53
+ fi
50
54
rv=$( cat vm$i /tests-exitcode.txt)
51
55
test $rv ! = 0 && touch /tmp/have_failed_tests
52
56
89
93
cat summary.txt \
90
94
| awk ' /\(expected PASS\)/{ if ($1!="SKIP") print $2; next; } show' \
91
95
| while read t; do
92
- echo " check: $t "
93
96
cat summary-failure-logs.txt \
94
97
| awk ' $0~/Test[: ]/{ show=0; } $0~v{ show=1; } show' v=" $t " \
95
98
> /tmp/fail.txt
Original file line number Diff line number Diff line change 35
35
cat /tmp/summary.txt
36
36
echo " "
37
37
38
- if [ -e /tmp/have_failed_tests ]; then
39
- RV=1
38
+ if [ -f /tmp/have_failed_tests && -s /tmp/failed.txt ]; then
40
39
echo " Debuginfo of failed tests:"
41
40
cat /tmp/failed.txt
42
41
echo " "
43
42
cat /tmp/summary.txt | grep -v ' ^/'
44
43
echo " "
45
- else
46
- RV=0
47
44
fi
48
45
49
46
echo -e " \nFull logs for download:\n $1 \n"
@@ -70,4 +67,5 @@ for i in $(seq 1 $VMs); do
70
67
test -s " $file " && showfile " $file " " $vm : failure logfile"
71
68
done
72
69
73
- exit $RV
70
+ test -f /tmp/have_failed_tests && exit 1
71
+ exit 0
You can’t perform that action at this time.
0 commit comments