Fail rally-cli job if at least one test failed

Call subunit-stats at the end of post-test-hook. This should set $? to
non-zero if at least one test failed.

Change-Id: I5e8cd57a6611e96bfe09ad65072b13d1668e4b3d
This commit is contained in:
Sergey Skripnick 2014-07-17 15:10:44 +03:00
parent 8980bfe9c5
commit 99622325f0

View File

@ -119,6 +119,7 @@
sudo -H -u stack tox -ecli -v
.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
}
export -f pre_test_hook
export -f post_test_hook