Explicitly fail if tox failed in run_tests
In some cases tox do not report failed test command as a failure (exit code different that 0) upstream. This patch will explicitly report exit code 1 for function that run tox in case of failed tests. Change-Id: I639d2c4ac3625ff3832a43e83c46d0e61debe679 Closes-Bug: #1431437
This commit is contained in:
@@ -141,7 +141,7 @@ run_cli_tests() {
|
||||
# run tests
|
||||
NAILGUN_CONFIG=$config LISTEN_PORT=$NAILGUN_PORT \
|
||||
NAILGUN_ROOT=$NAILGUN_ROOT tox -e$env_to_run -- -vv $testropts \
|
||||
${certain_tests[@]} --xunit-file $FUELCLIENT_XUNIT
|
||||
${certain_tests[@]} --xunit-file $FUELCLIENT_XUNIT || return 1
|
||||
popd > /dev/null
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user