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
This commit is contained in:
Clark Boylan 2013-11-21 15:59:01 -08:00
parent 99a6cee9c7
commit 000952cd89

View File

@ -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