]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
script/run_tox.sh: Don't overwrite the Ceph's bulid dir
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 27 Aug 2019 08:36:43 +0000 (10:36 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Mon, 30 Sep 2019 11:21:40 +0000 (13:21 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/script/run_tox.sh

index 14e3e641d9406759b1c161e493e6ad965846a762..101f52ced399d8f7ea1a3636861a80ad7981cc97 100755 (executable)
@@ -27,15 +27,15 @@ example:
 
 following command will run tox with envlist of "py27,py3" using the "tox.ini" in current directory.
 
-  $prog_name --tox-env py27,py3
+  $prog_name --tox-envs py27,py3
 
 following command will run tox with envlist of "py27" using "src/pybind/mgr/ansible/tox.ini"
 
-  $prog_name --tox-env py27 ansible
+  $prog_name --tox-envs py27 ansible
 
 following command will run tox with envlist of "py27" using "/ceph/src/python-common/tox.ini"
 
-  $prog_name --tox-env py27 --tox-path /ceph/src/python-common
+  $prog_name --tox-envs py27 --tox-path /ceph/src/python-common
 EOF
 }
 
@@ -121,6 +121,11 @@ function main() {
     fi
 
     if [ ! -f ${venv_path}/bin/activate ]; then
+        if [ -d "$venv_path" ]; then
+            cd $venv_path
+            echo "$PWD already exists, but it's not a virtualenv. test_name empty?"
+            exit 1
+        fi
         $source_dir/src/tools/setup-virtualenv.sh ${venv_path}
     fi
     source ${venv_path}/bin/activate