diff options
author | Monty Taylor <mordred@inaugust.com> | 2013-04-07 18:24:27 -0400 |
---|---|---|
committer | Matthew Sherborne <msherborne@gmail.com> | 2013-05-07 18:38:53 +1000 |
commit | cbe862603eaa7c08bc926208ba46d5ef927e2658 (patch) | |
tree | 3ce89c9b27bee6ae219176cd7c294419110dd77c /run_tests.sh | |
parent | c1857d6f4fa432b1e708270cbd46aa19510902e1 (diff) | |
download | nova-cbe862603eaa7c08bc926208ba46d5ef927e2658.tar.gz nova-cbe862603eaa7c08bc926208ba46d5ef927e2658.tar.xz nova-cbe862603eaa7c08bc926208ba46d5ef927e2658.zip |
Transition from openstack.common.setup to pbr.
Declarative approach to packaging, obviates the need for copying files.
Also, removes the need for setup.py to import files from the nova
module.
./run_tests.sh now ensure's that nova.egg-info/entry_points.txt is up to
date before running tests.
Change-Id: I7b7a18e065a62491ade54fbed5d8400db1d4e6c7
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/run_tests.sh b/run_tests.sh index 4d02fe570..2ad627db3 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -136,6 +136,10 @@ function run_tests { set +e testrargs=`echo "$testrargs" | sed -e's/^\s*\(.*\)\s*$/\1/'` TESTRTESTS="$TESTRTESTS --testr-args='--subunit $testropts $testrargs'" + if [ setup.cfg -nt nova.egg-info/entry_points.txt ] + then + ${wrapper} python setup.py egg_info + fi echo "Running \`${wrapper} $TESTRTESTS\`" bash -c "${wrapper} $TESTRTESTS | ${wrapper} tools/colorizer.py" RESULT=$? |