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 build command. In this change, it executes a sub-shell process and exit 1, so that Travis capture the return code and interpret it as a build error. Signed-off-by: Wainer dos Santos Moschetta <wainersm@xxxxxxxxxx> --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 091d071..a4405c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -119,5 +119,5 @@ 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 + - if grep -q FAIL results.txt ; then $(exit 1) ; fi + - if ! grep -q PASS results.txt ; then $(exit 1) ; fi -- 2.23.0