]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/dashboard/run-backend-api-tests.sh: use python3 by default
authorKefu Chai <kchai@redhat.com>
Mon, 20 Apr 2020 11:13:52 +0000 (19:13 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 11:57:00 +0000 (19:57 +0800)
since vstart_runner.py is now py3, let's use python3 by default

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d54f3ea43e05c2823c813e9687194b0b1fe15ffe)

Conflicts:
src/pybind/mgr/dashboard/run-backend-api-tests.sh: trivial
resolution

src/pybind/mgr/dashboard/run-backend-api-tests.sh

index b2e9451e2893eff0e136edff9fa554c5ac8cba6c..040a7e0afa9757156111f0ea4b7eedba79ee100e 100755 (executable)
@@ -44,8 +44,7 @@ get_build_py_version() {
 setup_teuthology() {
     TEMP_DIR=`mktemp -d`
     cd $TEMP_DIR
-
-    virtualenv --python=${TEUTHOLOGY_PYTHON_BIN:-/usr/bin/python} venv
+    virtualenv --python=${TEUTHOLOGY_PYTHON_BIN:-/usr/bin/python3} venv
     source venv/bin/activate
     pip install 'setuptools >= 12'
     pip install git+https://github.com/ceph/teuthology#egg=teuthology[test]