diff options
author | Wainer dos Santos Moschetta <wainersm@redhat.com> | 2020-01-15 11:46:10 -0300 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-02-04 07:56:37 +0100 |
commit | 00e4483399bd57c9b49f8e79c9aacf0024193536 (patch) | |
tree | a4bb5c07fd406af7d562cfbbd4b5061cb201b52d | |
parent | 33da0c060ee5a57b77ff13b9934e7cba9e1e3c46 (diff) | |
download | kvm-unit-tests-00e4483399bd57c9b49f8e79c9aacf0024193536.tar.gz |
travis.yml: Prevent 'script' from premature exit
The 'script' section finishes its execution prematurely whenever
a shell's exit is called. If the intention is to force
Travis to flag a build/test failure then the correct approach
is erroring any command statement. In this change, it combines
the grep's in a single AND statement that in case of false
Travis will interpret as a build error.
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20200115144610.41655-1-wainersm@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 091d071..f0cfc82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -119,5 +119,4 @@ before_script: script: - make -j3 - ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt - - if grep -q FAIL results.txt ; then exit 1 ; fi - - if ! grep -q PASS results.txt ; then exit 1 ; fi + - grep -q PASS results.txt && ! grep -q FAIL results.txt |