From 43e6dbaf6753f9e27df5abf241a2053679876195 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 27 Aug 2024 10:53:06 +0100 Subject: [PATCH] tox: Add Python-specific functional envs Change-Id: I87815faa6139eb3b09f21b917b8250ac0619a979 Signed-off-by: Stephen Finucane --- novaclient/tests/functional/base.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/novaclient/tests/functional/base.py b/novaclient/tests/functional/base.py index be4c5d74f..58403a078 100644 --- a/novaclient/tests/functional/base.py +++ b/novaclient/tests/functional/base.py @@ -258,7 +258,7 @@ class ClientTestBase(testtools.TestCase): # something more sensible. cli_dir = os.environ.get( 'OS_NOVACLIENT_EXEC_DIR', - os.path.join(os.path.abspath('.'), '.tox/functional/bin')) + os.path.join(os.environ['TOX_ENV_DIR'], 'bin')) self.cli_clients = tempest.lib.cli.base.CLIClient( username=user, diff --git a/tox.ini b/tox.ini index f444646a0..319a2a81f 100644 --- a/tox.ini +++ b/tox.ini @@ -61,7 +61,7 @@ deps = commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html -[testenv:functional] +[testenv:functional{,-py38,-py39,-py310,-py311,-py312}] passenv = OS_* commands = stestr --test-path=./novaclient/tests/functional run --concurrency=1 {posargs}