From 000952cd89743ce1b103de714b0cdfbbe08324d0 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 21 Nov 2013 15:59:01 -0800 Subject: [PATCH] Convert subunit v1 log results to v2 format. * modules/jenkins/files/slave_scripts/run-unittests.sh: Generating html from subunit v1 files is much slower than generating them from subunitv2 files because parsing v2 with the v2 parser is much faster than parsing v1 with the v2 parser and feeding the leftovers through a v1 parser. Due to this time difference convert v1 files to v2 before parsing them to generate html. Change-Id: I7264d68089fb40de62e47660fe1f31c9adcabdb0 --- modules/jenkins/files/slave_scripts/run-unittests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/jenkins/files/slave_scripts/run-unittests.sh b/modules/jenkins/files/slave_scripts/run-unittests.sh index 66b2791032..407d121514 100755 --- a/modules/jenkins/files/slave_scripts/run-unittests.sh +++ b/modules/jenkins/files/slave_scripts/run-unittests.sh @@ -50,7 +50,7 @@ if [ -d ".testrepository" ] ; then if [ -f ".testrepository/0.2" ] ; then cp .testrepository/0.2 ./subunit_log.txt elif [ -f ".testrepository/0" ] ; then - cp .testrepository/0 ./subunit_log.txt + .tox/$venv/bin/subunit-1to2 < .testrepository/0 > ./subunit_log.txt fi .tox/$venv/bin/python /usr/local/jenkins/slave_scripts/subunit2html.py ./subunit_log.txt testr_results.html gzip -9 ./subunit_log.txt