Skip to content

Commit 8b58cf4

Browse files
tighten the checks
Signed-off-by: David Korczynski <david@adalogics.com>
1 parent f53e386 commit 8b58cf4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

projects/mruby/run_tests.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,19 @@ cd $SRC/mruby
2222
rake test > /tmp/test.out 2>&1
2323
)
2424

25-
# Validate if the tests were successful based on the printed output. We expect
26-
# 165x tests to succeed and some tests skipped. I suspect the skipping causes
25+
# There are two test runs, each of which executes many tests. Neither of these
26+
# must have crashing tests and that they have successful tests as well.
27+
# For the first batch We expect 165x tests to succeed and some tests skipped,
28+
# and 100 for the second batch.
29+
# I suspect the skipping causes
2730
# rake to return an error code. However, in normal circumastances we see
2831
# 9 tests skipped.
2932
grep "OK: 165" /tmp/test.out
33+
grep "OK: 100" /tmp/test.out
34+
35+
if [[ `grep "Crash: 0" /tmp/test.out | wc -l` != '2' ]]; then
36+
exit 1
37+
fi
38+
if [[ `grep "KO: 0" /tmp/test.out | wc -l` != '2' ]]; then
39+
exit 1
40+
fi

0 commit comments

Comments
 (0)