diff options
author | Björn Gustavsson <[email protected]> | 2016-12-12 15:33:35 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-12-12 16:33:29 +0100 |
commit | 709be2f95c1df3b684e3ce036b98bdda3efa3f09 (patch) | |
tree | 6e0ccd28c15ed43045f9b197ab663e8fa213537e /scripts/run-smoke-tests | |
parent | 2e1fb1a42098ac73cd44f60699a09c3c3e49f77f (diff) | |
download | otp-709be2f95c1df3b684e3ce036b98bdda3efa3f09.tar.gz otp-709be2f95c1df3b684e3ce036b98bdda3efa3f09.tar.bz2 otp-709be2f95c1df3b684e3ce036b98bdda3efa3f09.zip |
Make sure that Travis fails when test cases fail
Diffstat (limited to 'scripts/run-smoke-tests')
-rwxr-xr-x | scripts/run-smoke-tests | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/run-smoke-tests b/scripts/run-smoke-tests new file mode 100755 index 0000000000..c2333e7825 --- /dev/null +++ b/scripts/run-smoke-tests @@ -0,0 +1,10 @@ +#!/bin/bash +set -ev + +cd $ERL_TOP/release/tests/test_server +$ERL_TOP/bin/erl -s ts install -s ts smoke_test batch -s init stop + +if grep -q '=failed *[1-9]' ct_run.test_server@*/*/run.*/suite.log; then + echo "One or more tests failed." + exit 1 +fi |