summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-12-03 13:17:55 -0500
committerGitHub <noreply@github.com>2020-12-03 13:17:55 -0500
commit6c4e87bf336073183f8ae8964366d574c7ee4823 (patch)
tree23cf3538e08f86986ef9a363b525c1f9b96a84aa /tox.ini
parented9bd19ca88e4c6458c95d26151c734112615e9a (diff)
downloadvyos-cloud-init-6c4e87bf336073183f8ae8964366d574c7ee4823.tar.gz
vyos-cloud-init-6c4e87bf336073183f8ae8964366d574c7ee4823.zip
integration_tests: introduce skipping of tests by OS (#702)
This introduces an optional, more complex OS_IMAGE format (`<image id>::<os>::<release>`) which allows the specification of the OS/OS release which the given image ID corresponds to. This information is used to skip tests which do not apply to the image. This commit is comprised of the following discrete changes: * introduce the IntegrationImage class, to handle parsing and storing the new OS_IMAGE format * support inferring the OS and OS release of Ubuntu series, so that we can continue to set OS_IMAGE to just a series name and have test skipping work * add documentation on Image Selection to integration_tests.rst * introduce the actual skipping behaviour based on OS marks * apply the `ubuntu` mark to all tests that should be skipped on non-Ubuntu operating systems
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 022b918d..df1deb6f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -179,3 +179,4 @@ markers =
user_data: the user data to be passed to the test instance
instance_name: the name to be used for the test instance
sru_2020_11: test is part of the 2020/11 SRU verification
+ ubuntu: this test should run on Ubuntu