Fix 'cover' tox job
'cover' tox job fails on requirements version conflicts installing venv. But the problem is that it fails installing second venv, that is not used and is artifact of old approach for running tests. So, disable installation of old venv and use only tox venv, that works. Change-Id: Ic66281cd952906b92bc14873f48d1daa4ad6eb2e Closes-Bug: #1685325
This commit is contained in:
parent
c458dff54c
commit
c7591381d6
|
@ -31,7 +31,7 @@ uncommitted=$(git status --porcelain | grep -v "^??")
|
|||
git checkout HEAD^
|
||||
|
||||
baseline_report=$(mktemp -t manila_coverageXXXXXXX)
|
||||
find . -type f -name "*.pyc" -delete && ./run_tests.sh -V --coverage --no-pep8 $TESTR_ARGS
|
||||
find . -type f -name "*.pyc" -delete && ./run_tests.sh -N --coverage --no-pep8 $TESTR_ARGS
|
||||
coverage report > $baseline_report
|
||||
baseline_missing=$(awk 'END { print $3 }' $baseline_report)
|
||||
|
||||
|
@ -41,7 +41,7 @@ git checkout -
|
|||
|
||||
# Generate and save coverage report
|
||||
current_report=$(mktemp -t manila_coverageXXXXXXX)
|
||||
find . -type f -name "*.pyc" -delete && ./run_tests.sh -V --coverage --no-pep8 $TESTR_ARGS
|
||||
find . -type f -name "*.pyc" -delete && ./run_tests.sh -N --coverage --no-pep8 $TESTR_ARGS
|
||||
coverage report > $current_report
|
||||
current_missing=$(awk 'END { print $3 }' $current_report)
|
||||
|
||||
|
|
Loading…
Reference in New Issue