summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-02-03 12:46:07 +1100
committerMonty Taylor <mordred@inaugust.com>2013-02-03 12:46:07 +1100
commit4a110136c552dc3655ef9fbd9c8abab7b348b2bd (patch)
treedeee5dd414a1ea473023568a962de717ccd680c3
parentdfd3658c1767862f5610c2e430b1c0c81f168f39 (diff)
downloadnova-4a110136c552dc3655ef9fbd9c8abab7b348b2bd.tar.gz
nova-4a110136c552dc3655ef9fbd9c8abab7b348b2bd.tar.xz
nova-4a110136c552dc3655ef9fbd9c8abab7b348b2bd.zip
Parse testr output through subunit2pyunit.
When running through run_tests.sh, filter the testr output through subunit2pyunit so that incremental progress can be seen. Should be a step towards folks seeing incremental test progress. Change-Id: Ic90669acabaa1c8b64aae80349bff3d3deaf59fa
-rwxr-xr-xrun_tests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 3bf996fa2..05e762aaf 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -91,9 +91,9 @@ function run_tests {
# Just run the test suites in current environment
set +e
testrargs=`echo "$testrargs" | sed -e's/^\s*\(.*\)\s*$/\1/'`
- TESTRTESTS="$TESTRTESTS --testr-args='$testropts $testrargs'"
+ TESTRTESTS="$TESTRTESTS --testr-args='--subunit $testropts $testrargs'"
echo "Running \`${wrapper} $TESTRTESTS\`"
- bash -c "${wrapper} $TESTRTESTS"
+ bash -c "${wrapper} $TESTRTESTS | subunit2pyunit"
RESULT=$?
set -e