nova/tools/pretty_tox3.sh
melanie witt 53f244da12 Make setenv consistent for unit, func, and api-samples
Since ostestr switched to running stestr under the covers, we lost the
old magic setting of the environment variables via .testr.conf for
capturing stderr/stdout and the test timeout. This makes the unit,
functional, and api-samples envs consistent with the py27 env that was
already updated to set those variables.

This also updates the pretty_tox3.sh script to run stestr directly.

Change-Id: I27fa9b7e25c1a1dc921653eec84864423f898a85
2017-10-05 21:45:46 +00:00

16 lines
289 B
Bash
Executable File

#!/usr/bin/env bash
TESTRARGS=$1
if [ $OS_TEST_PATH = './nova/tests/functional' ]; then
blacklist_file=tests-functional-py3.txt
else
blacklist_file=tests-py3.txt
fi
if [ -z "$TESTRARGS" ]; then
stestr run --blacklist-file $blacklist_file
else
stestr run "$TESTRARGS"
fi