Skip to content

Commit

Permalink
Merge pull request #33407 from rhcs-dashboard/coverage-venv-python-ve…
Browse files Browse the repository at this point in the history
…rsion

mgr/dashboard: coverage venv python version same as mgr

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
  • Loading branch information
Lenz Grimmer committed Feb 20, 2020
2 parents e79e424 + e4018d0 commit 0ef8f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pybind/mgr/dashboard/run-backend-api-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ setup_coverage() {
# In CI environment we cannot install coverage in system, so we install it in a dedicated venv
# so only coverage is available when adding this path.
cd $TEMP_DIR
virtualenv --python=${TEUTHOLOGY_PYTHON_BIN:-/usr/bin/python} coverage-venv
virtualenv --python=/usr/bin/python3 coverage-venv
source coverage-venv/bin/activate
cd $CURR_DIR
pip install coverage==4.5.2
COVERAGE_PATH=$(python -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
COVERAGE_PATH=$(python -c "import sysconfig; print(sysconfig.get_paths()['platlib'])")
deactivate
}

Expand Down

0 comments on commit 0ef8f1e

Please sign in to comment.