From 99622325f0b4734e7b10a8a553aee78762f19d53 Mon Sep 17 00:00:00 2001 From: Sergey Skripnick Date: Thu, 17 Jul 2014 15:10:44 +0300 Subject: [PATCH] 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 --- .../files/jenkins_job_builder/config/rally.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/rally.yaml b/modules/openstack_project/files/jenkins_job_builder/config/rally.yaml index 25bd87426c..dbb16348d3 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/rally.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/rally.yaml @@ -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