Travis CI: actually return non-zero exit status when the test job fails

The original code did not actually propagate the test runner exit status
to parent process so Travis CI job was always green.

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Babinsky 2017-01-09 12:27:36 +01:00
parent d15ccde20f
commit 9b5b713150

View File

@ -47,7 +47,11 @@ ipa-docker-test-runner -l $CI_RESULTS_LOG \
--git-repo $TRAVIS_BUILD_DIR \ --git-repo $TRAVIS_BUILD_DIR \
$TASK_TO_RUN $test_set $TASK_TO_RUN $test_set
if $? exit_status="$?"
if [[ "$exit_status" -ne 0 ]]
then then
truncate_log_to_test_failures truncate_log_to_test_failures
fi fi
exit $exit_status