X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=test.sh;h=3194c72cbb40661e179fc494d596a25ba3c9dcfa;hb=99386b99835dfcc75053b4a9a4304b3d8a8546ad;hp=9ca252ed0d876a2a574f22a9c9c0b6dc7edd1b88;hpb=e43d4d238ae016b477aee3f60f1707fb4effacd3;p=dygraphs.git diff --git a/test.sh b/test.sh index 9ca252e..3194c72 100755 --- a/test.sh +++ b/test.sh @@ -16,4 +16,9 @@ if [ $? != 0 ]; then exit 1 fi -phantomjs phantom-driver.js $* +phantomjs phantom-driver.js $* | tee /tmp/test-results.txt +trap "rm -f /tmp/test-results.txt" EXIT +if grep -q 'FAIL' /tmp/test-results.txt; then + echo One or more tests failed. + exit 1 +fi