From 70ddd281875ee2b995ba6ca82f8b8fa9ff05515a Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 15 Feb 2026 23:18:49 +0900 Subject: [PATCH] Add .stestr.conf to manage default OS_TEST_PATH ... following the pattern found in the other repos. Change-Id: I4816aee9d82cdfc7d2101057226d95a1d7c85695 Signed-off-by: Takashi Kajinami --- .stestr.conf | 3 +++ tox.ini | 7 ++----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .stestr.conf diff --git a/.stestr.conf b/.stestr.conf new file mode 100644 index 0000000..5c6cf95 --- /dev/null +++ b/.stestr.conf @@ -0,0 +1,3 @@ +[DEFAULT] +test_path=${OS_TEST_PATH:-./observabilityclient/tests/unit} +top_dir=./ diff --git a/tox.ini b/tox.ini index b421f7f..37f48b4 100644 --- a/tox.ini +++ b/tox.ini @@ -4,8 +4,6 @@ envlist = py3,pep8 [testenv] usedevelop = True -setenv = - OS_TEST_PATH = ./observabilityclient/tests/unit passenv = PROMETHEUS_* OBSERVABILITY_* @@ -13,7 +11,7 @@ deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = stestr run --slowest --test-path {env:OS_TEST_PATH} {posargs} +commands = stestr run --slowest {posargs} [testenv:pep8] skip_install = true @@ -27,8 +25,7 @@ commands = {posargs} [testenv:cover] setenv = - {[testenv]setenv} - PYTHON=coverage run --source observabilityclient --parallel-mode + PYTHON=coverage run --source observabilityclient --parallel-mode commands = coverage erase {[testenv]commands}