aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2024-04-10 01:05:13 +0100
committerJake Hunsaker <jacob.r.hunsaker@gmail.com>2024-04-15 09:20:44 -0400
commit517e8315479cf86af734dfcda01cbc5574cc32cf (patch)
treef33df834d420d00af45b14083a85789bdd4cb6de /tox.ini
parent93bcf51257ec4ce2b97c942e51e56546ce8cd0cd (diff)
downloadsos-517e8315479cf86af734dfcda01cbc5574cc32cf.tar.gz
[avocado] Upgrade avocado to 103.X LTS
* Extra changes required due to module and function changes in new avocado * CentOS Stream is now seen as centos-stream in avocado instead of centos * Fine tune tox for stage tests Closes: #3588 Resolves: #3594 Co-authored-by: Jake Hunsaker <jacob.r.hunsaker@gmail.com> Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini21
1 files changed, 11 insertions, 10 deletions
diff --git a/tox.ini b/tox.ini
index 9d4b16e7..d7734ab6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,10 +4,17 @@ envlist = flake8
[testenv]
deps =
-r{toxinidir}/requirements.txt
- avocado-framework==94.0
+ avocado-framework<104.0
python_magic
setenv =
PYTHONPATH = {toxinidir}/tests
+avocado_cmd =
+ avocado run -p TESTLOCAL=true --max-parallel-tasks=1
+stage_tests =
+ tests/cleaner_tests \
+ tests/collect_tests \
+ tests/report_tests \
+ tests/vendor_tests
[testenv:flake8]
deps = flake8
@@ -27,23 +34,17 @@ commands =
[testenv:stageone_tests]
basepython = python3
commands =
- avocado run -p TESTLOCAL=true --test-runner=runner -t stageone tests/cleaner_tests
- avocado run -p TESTLOCAL=true --test-runner=runner -t stageone tests/collect_tests
- avocado run -p TESTLOCAL=true --test-runner=runner -t stageone tests/report_tests
- avocado run -p TESTLOCAL=true --test-runner=runner -t stageone tests/vendor_tests
+ {[testenv]avocado_cmd} -t stageone {[testenv]stage_tests}
[testenv:stagetwo_tests]
basepython = python3
commands =
- avocado run -p TESTLOCAL=true --test-runner=runner -t stagetwo tests/cleaner_tests
- avocado run -p TESTLOCAL=true --test-runner=runner -t stagetwo tests/collect_tests
- avocado run -p TESTLOCAL=true --test-runner=runner -t stagetwo tests/report_tests
- avocado run -p TESTLOCAL=true --test-runner=runner -t stagetwo tests/vendor_tests
+ {[testenv]avocado_cmd} -t stagetwo {[testenv]stage_tests}
[testenv:foreman_tests]
basepython = python3
commands =
- avocado run -p TESTLOCAL=true --test-runner=runner -t foreman tests/product_tests/foreman/
+ {[testenv]avocado_cmd} -t foreman tests/product_tests/foreman/
[testenv:nosetests]
basepython = python3