run_test.sh -V --unit doesn't run using virtualenv

Before this change, when you called the script using the -V option, the tests
were run outside the virtualenv that the script creates.
To fix it, I modified the lines of the script that run the tests to run
inside the virtualenv using the $wrapper variable.

Change-Id: I5c202727e0b5214670d54e14c80a68cc8ebec400
Closes-Bug: #1251730
This commit is contained in:
Pablo Andres Fuente 2013-12-02 10:50:36 -03:00
parent e726c533d7
commit 02286951bc
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ function run_tests {
if [ -n "$args" ] ; then
args="-t $args"
fi
python setup.py testr --slowest $args
${wrapper} python setup.py testr --slowest $args
}
function run_pep8 {
@ -116,8 +116,8 @@ fi
# Generate coverage report
if [ "$coverage" == 1 ]; then
echo "Generating coverage report in ./cover"
python setup.py testr --coverage --slowest
python -m coverage report --show-missing
${wrapper} python setup.py testr --coverage --slowest
${wrapper} python -m coverage report --show-missing
fi
exit $result