Merge ~adam-collard/maas-ci/+git/system-tests:generative-test-suites into ~maas-committers/maas-ci/+git/system-tests:master

Proposed by Adam Collard
Status: Merged
Approved by: Adam Collard
Approved revision: 4176e0eef1209227a39e1f1ff522bf9e8f421577
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~adam-collard/maas-ci/+git/system-tests:generative-test-suites
Merge into: ~maas-committers/maas-ci/+git/system-tests:master
Diff against target: 48 lines (+6/-15)
1 file modified
tox.ini (+6/-15)
Reviewer Review Type Date Requested Status
Diego Mascialino (community) Approve
MAAS Lander Approve
Review via email: mp+417097@code.launchpad.net

Commit message

Use tox expansion to reduce DRY-violation

To post a comment you must log in.
Revision history for this message
MAAS Lander (maas-lander) wrote :

UNIT TESTS
-b generative-test-suites lp:~adam-collard/maas-ci/+git/system-tests into -b master lp:~maas-committers/maas-ci/+git/system-tests

STATUS: SUCCESS
COMMIT: 4176e0eef1209227a39e1f1ff522bf9e8f421577

review: Approve
Revision history for this message
Diego Mascialino (dmascialino) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/tox.ini b/tox.ini
2index d1ba647..e340341 100644
3--- a/tox.ini
4+++ b/tox.ini
5@@ -1,5 +1,5 @@
6 [tox]
7-envlist = py3,lint,mypy,build,cog
8+envlist = cog,lint,mypy,build
9
10 [testenv]
11 passenv =
12@@ -11,20 +11,13 @@ passenv =
13 MAAS_SYSTEMTESTS_CLIENT_CONTAINER
14 MAAS_SYSTEMTESTS_LXD_PROFILE
15
16-commands=
17- pytest systemtests/tests {posargs}
18-
19 [testenv:build]
20 commands=
21 pytest systemtests/env_builder/ --maxfail=1 {posargs}
22
23-[testenv:collect_sos_report]
24-commands=
25- pytest systemtests/collect_sos_report --log-file systemtes.collect_sos_rport.log --junitxml=junit.collect_sos_report.xml {posargs}
26-
27-[testenv:general_tests]
28+[testenv:{collect_sos_report,general_tests}]
29 commands=
30- pytest systemtests/general_tests --log-file systemtes.generaltests.log --junitxml=junit.general_tests.xml {posargs}
31+ pytest systemtests/{envname} --log-file systemtests.{envname}.log --junitxml=junit.{envname}.xml {posargs}
32
33 [testenv:cog]
34 deps=
35@@ -40,11 +33,9 @@ commands=
36 #machines = list(config.get("machines", {}).get("hardware", {}).keys())
37 #machines += list(config.get("machines", {}).get("vms", {}).get("instances", {}).keys())
38 #print("Generating config for {}.".format(', '.join(machines)))
39-#for machine in machines:
40-# cog.outl(f'[testenv:{machine}]')
41-# cog.outl('commands=')
42-# cog.outl(f' pytest systemtests/tests_per_machine -k "{machine}" --log-file systemtests.{machine}.log --junitxml=junit.{machine}.xml {{posargs}}')
43-# cog.outl("")
44+#cog.outl(f"[testenv:{{{','.join(machines)}}}]")
45+#cog.outl('commands=')
46+#cog.outl(' pytest systemtests/tests_per_machine -k {envname} --log-file systemtests.{envname}.log --junitxml=junit.{envname}.xml {posargs}')
47 #]]]
48 #[[[end]]]
49

Subscribers

People subscribed via source and target branches

to all changes: