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:
parent
e726c533d7
commit
02286951bc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user