]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/dashboard: specify workdir using tox.ini 21416/head
authorKefu Chai <kchai@redhat.com>
Fri, 13 Apr 2018 13:00:42 +0000 (21:00 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Apr 2018 13:08:51 +0000 (21:08 +0800)
--workdir was introduced in tox v2.4.0, but the tox shipped by
ubuntu/xenial is 2.3.1. also because i removed the step to prepare the
tox using "pip install -r requirements.txt", what we have is the tox
v2.3.1 . so, instead of passing workdir in the command line, we specify
this setting in tox.ini.

also drop the tox in requirements.txt, it's just misleading. and we are
not using the tox installed in the venv.

Fixes: http://tracker.ceph.com/issues/23709
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/dashboard/requirements.txt
src/pybind/mgr/dashboard/run-tox.sh
src/pybind/mgr/dashboard/tox.ini

index fc623ade316dd08daca481aff15f374c685df338..b62aa4bb2d1c7c9fe03f82d306a8e1fd1900d370 100644 (file)
@@ -28,6 +28,5 @@ Routes==2.4.1
 singledispatch==3.4.0.3
 six==1.11.0
 tempora==1.10
-tox==2.9.1
 virtualenv==15.1.0
 wrapt==1.10.11
index 192615cf4cfc11762f36c91b65f8886c7ae11d08..81f7de961cf48a903f609d4112e526a0de0c1899 100755 (executable)
@@ -24,4 +24,4 @@ if [ "$WITH_PYTHON3" = "ON" ]; then
   ENV_LIST+="py3-cov,py3-lint"
 fi
 
-tox -c ${TOX_PATH} -e $ENV_LIST --workdir ${CEPH_BUILD_DIR}
+tox -c ${TOX_PATH} -e $ENV_LIST
index a5cce362c66a4b61a14fbf275d616ee75c37dc54..372eb13395bd8a039c6e7dd78fc94f3dfd0be2b6 100644 (file)
@@ -1,6 +1,7 @@
 [tox]
 envlist = {py27,py3}-cov,{py27,py3}-lint
 skipsdist = true
+toxworkdir = {env:CEPH_BUILD_DIR}
 
 [testenv]
 deps =