tempest/tools/pretty_tox_serial.sh
Matthew Treinish cb56994383 Fix return code for pretty_tox_serial.sh
This commit properly returns the return code from the testr run.

Change-Id: Ifa0b39786814e5a40d1b97b52df809db65f8c211
2013-08-09 17:43:51 -04:00

12 lines
162 B
Bash
Executable File

#!/bin/sh
TESTRARGS=$@
if [ ! -d .testrepository ]; then
testr init
fi
testr run --subunit $TESTRARGS | subunit2pyunit
retval=$?
testr slowest
exit $retval