Fix run_tests.sh lockutils when run with -d

Change I007bd39e4d9aad7539b4b7389eb5189b5d1f10e2 fixed how the test
runner was called, but did not take into account that a different
command line is used when -d flag is passed to the script. We fix that but
accounting for the lockuitls change even when -d is passed.

Change-Id: I7462b70a707fff281fabe9d9f20cbb7bf8d037ef
This commit is contained in:
Nikola Dipanov 2014-02-09 17:18:56 +01:00
parent 2dec996e08
commit 6742b1aea5

View File

@ -114,7 +114,7 @@ function run_tests {
# provided.
testrargs="discover ./nova/tests"
fi
${wrapper} python -m testtools.run $testropts $testrargs
${wrapper} python -m nova.openstack.common.lockutils python -m testtools.run $testropts $testrargs
# Short circuit because all of the testr and coverage stuff
# below does not make sense when running testtools.run for