From cbe862603eaa7c08bc926208ba46d5ef927e2658 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 7 Apr 2013 18:24:27 -0400 Subject: 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 --- run_tests.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'run_tests.sh') 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=$? -- cgit