neutron-lbaas/tools/pretty_tox.sh
Brandon Logan 06c4681ec6 Added tox tempest environment
When running tox with tox -etempest, tox will install tempest
from a specific commit that the v2 tests are known to work well
with.  Then the tests will be run. This also puts a change in
pretty_tox.sh to control the concurrency level because the
tempest tests will fail when running in parallel.

Change-Id: I745293322149390f0e709165f34c144f5c439720
2015-03-10 02:19:06 -05:00

13 lines
430 B
Bash
Executable File

#! /bin/sh
TESTRARGS=$1
#This is for supporting tempest tests in tox as the neutron-lbaas tempest tests fail when run in parallel
CONCURRENCY=${OS_TESTR_CONCURRENCY:-}
if [ -n "$CONCURRENCY" ]
then
CONCURRENCY="--concurrency=$CONCURRENCY"
fi
exec 3>&1
status=$(exec 4>&1 >&3; (python setup.py testr --slowest --testr-args="--subunit $TESTRARGS $CONCURRENCY"; echo $? >&4 ) | $(dirname $0)/subunit-trace.py -f) && exit $status