Skip to content

Commit a5d5176

Browse files
committed
(build) Detect test build failures
1 parent 3a985c3 commit a5d5176

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build/run-tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ tns platform add android
2121
wait "$EMULATOR_STARTER_PID"
2222
tns test android | tee test-output.txt
2323

24+
if grep -q -E 'BUILD FAILED' test-output.txt ; then
25+
echo "TEST BUILD FAILED!"
26+
exit 1
27+
fi
28+
2429
if grep -q -E 'Executed[[:space:]][[:digit:]]+.*FAILED' test-output.txt ; then
2530
echo "TESTS FAILED!"
2631
exit 1

0 commit comments

Comments
 (0)