From 02286951bceee3adcd09e763e212d72c368a9a49 Mon Sep 17 00:00:00 2001 From: Pablo Andres Fuente Date: Mon, 2 Dec 2013 10:50:36 -0300 Subject: [PATCH] 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 --- run_tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 01d0c3dc97..914514479e 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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