Use subunit colorizer from nova for run_tests.sh
This commit copies the colorizer.py script over from nova and enables
it for testr with run_tests.sh. This enables real time output from
testr about which tests ran and the result with colors.
Change-Id: Idd1b820d103bf4d71f2645e98e86e5fadbd6cb0c
diff --git a/run_tests.sh b/run_tests.sh
index d5081c7..a645b22 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -118,7 +118,7 @@
if [ $with_testr -eq 1 ]; then
testr_init
${wrapper} find . -type f -name "*.pyc" -delete
- ${wrapper} testr run --parallel $noseargs
+ ${wrapper} testr run --parallel --subunit $noseargs | ${wrapper} subunit-2to1 | ${wrapper} tools/colorizer.py
else
${wrapper} $NOSETESTS
fi