Fix exit code in rally-cli job
Save and return exit status instead of trying to run subunit-stats Change-Id: Ic49e2e27ad7dbe20ca7577a4d958e27153abfcb6
This commit is contained in:
parent
aaaaa551a2
commit
564fc2e796
@ -145,9 +145,10 @@
|
||||
function post_test_hook {
|
||||
cd $BASE/new/rally
|
||||
sudo -H -u stack tox -ecli -v
|
||||
EXIT_CODE=$?
|
||||
.tox/cli/bin/python /usr/local/jenkins/slave_scripts/subunit2html.py .testrepository/subunit.log $WORKSPACE/results.html
|
||||
gzip -9 $WORKSPACE/results.html
|
||||
.tox/cli/bin/subunit-stats .testrepository/subunit.log
|
||||
return $EXIT_CODE
|
||||
}
|
||||
export -f pre_test_hook
|
||||
export -f post_test_hook
|
||||
|
Loading…
x
Reference in New Issue
Block a user