Split live-iso and qcow2 and update test scenario execution

this makes it possible to have more granular test execution
reported as separate statuses on GitHub. ATM we will have:

- cockpit/fedora-30
- cockpit/fedora-30/live-iso
- cockpit/fedora-30/qcow2
- cockpit/fedora-30/aws
- cockpit/fedora-30/azure
- cockpit/fedora-30/openstack
- cockpit/fedora-30/vmware
This commit is contained in:
Alexander Todorov 2019-05-29 11:30:10 +03:00 committed by Lars Karlitski
parent b71e8f74d8
commit 3587ed3663
2 changed files with 22 additions and 5 deletions

View File

@ -4,15 +4,22 @@ import composertest
import unittest
class TestSanity(composertest.ComposerTestCase):
class TestImages(composertest.ComposerTestCase):
"""
This is the "entry-point" to the test suite when
executed in Cockpit CI. If $TEST_SCENARIO=="" or
$TEST_SCENARIO="images" we end up here.
New test methods should be added here first!
When this target becomes too slow we split out into
separate scenarios!
"""
def test_blueprint_sanity(self):
self.runCliTest("/tests/cli/test_blueprints_sanity.sh")
def test_compose_sanity(self):
self.runCliTest("/tests/cli/test_compose_sanity.sh")
class TestImages(composertest.ComposerTestCase):
def test_ext4_filesystem(self):
self.runCliTest("/tests/cli/test_compose_ext4-filesystem.sh")
@ -22,9 +29,13 @@ class TestImages(composertest.ComposerTestCase):
def test_tar(self):
self.runCliTest("/tests/cli/test_compose_tar.sh")
class TestQcow2(composertest.ComposerTestCase):
def test_qcow2(self):
self.runCliTest("/tests/cli/test_compose_qcow2.sh")
class TestLiveIso(composertest.ComposerTestCase):
@unittest.skip("https://github.com/weldr/lorax/issues/731")
def test_live_iso(self):
self.runCliTest("/tests/cli/test_compose_live-iso.sh")

View File

@ -5,7 +5,13 @@
make vm
if [ -n "$TEST_SCENARIO" ]; then
test/check-cloud TestCloud.test_$TEST_SCENARIO
if [ "$TEST_SCENARIO" == "live-iso" ]; then
test/check-cli TestLiveIso
elif [ "$TEST_SCENARIO" == "qcow2" ]; then
test/check-cli TestQcow2
else
test/check-cloud TestCloud.test_$TEST_SCENARIO
fi
else
test/check-cli
test/check-cli TestImages
fi