From 3a94890367ea2fcd69e85980623cb6f61a60515b Mon Sep 17 00:00:00 2001 From: Julian Montez Date: Tue, 21 Jul 2015 11:27:21 -0500 Subject: [PATCH] Parse latest Tempest results Output latest test run results as a subunit stream using testr's built-in utility. Closes-Bug: #1476793 Change-Id: Ib7afd26fe368303ac18ddc3436ee90a02301557f --- .../roles/os_tempest/templates/openstack_tempest_gate.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/os_tempest/templates/openstack_tempest_gate.sh.j2 b/playbooks/roles/os_tempest/templates/openstack_tempest_gate.sh.j2 index 1ac0db9145..fa6ff5fb03 100644 --- a/playbooks/roles/os_tempest/templates/openstack_tempest_gate.sh.j2 +++ b/playbooks/roles/os_tempest/templates/openstack_tempest_gate.sh.j2 @@ -187,7 +187,7 @@ echo "Using test list $test_list_summary" result=$? # Create junit xml report from test results -subunit-1to2 < .testrepository/0 | subunit2junitxml > tempest_results.xml +testr last --subunit | subunit2junitxml > tempest_results.xml cp tempest_results.xml /tmp if [ -d "/var/log/utility" ];then # Copy the log to the utility logging directory