From 915af4c84124ea4ac8c713404c672ff2087ae979 Mon Sep 17 00:00:00 2001 From: kasturiNarra Date: Fri, 22 Nov 2019 15:30:29 +0530 Subject: Add possibility to run functional cases in py2/3 using tox e.g: tox -e functional -- glusto -c config.yaml \ --pytest='-v -x tests -k test_foo' and tox -e functional3 -- glusto -c config.yaml \ --pytest='-v -x tests -k test_foo' Change-Id: I7ffd0beb5787b65a8e26a25a441ecc415f581df6 Signed-off-by: kasturiNarra --- tox.ini | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 4f59a14c2..1a5b9dbf1 100644 --- a/tox.ini +++ b/tox.ini @@ -22,3 +22,25 @@ commands = pip install -e "git+https://github.com/loadtheaccumulator/glusto.git# pip install -e {toxinidir}/glustolibs-misc flake8 {toxinidir} pylint -j 4 --rcfile={toxinidir}/.pylintrc {toxinidir}/tests/functional --ignore=nfs_ganesha + +[testenv:functional] +basepython = python2.7 +commands = + python -m pip install --upgrade pip>=9.0.0 setuptools wheel + pip install \ + git+git://github.com/loadtheaccumulator/glusto.git \ + --editable=file:///{toxinidir}/glustolibs-gluster \ + --editable=file:///{toxinidir}/glustolibs-io \ + --editable=file:///{toxinidir}/glustolibs-misc + {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"} + +[testenv:functional3] +basepython = python3 +commands = + python3 -m pip install --upgrade pip>=9.0.0 setuptools wheel + pip3 install \ + git+git://github.com/loadtheaccumulator/glusto.git@python3_port4 \ + --editable=file:///{toxinidir}/glustolibs-gluster \ + --editable=file:///{toxinidir}/glustolibs-io \ + --editable=file:///{toxinidir}/glustolibs-misc + {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"} -- cgit