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:
parent
b71e8f74d8
commit
3587ed3663
@ -4,15 +4,22 @@ import composertest
|
|||||||
import unittest
|
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):
|
def test_blueprint_sanity(self):
|
||||||
self.runCliTest("/tests/cli/test_blueprints_sanity.sh")
|
self.runCliTest("/tests/cli/test_blueprints_sanity.sh")
|
||||||
|
|
||||||
def test_compose_sanity(self):
|
def test_compose_sanity(self):
|
||||||
self.runCliTest("/tests/cli/test_compose_sanity.sh")
|
self.runCliTest("/tests/cli/test_compose_sanity.sh")
|
||||||
|
|
||||||
|
|
||||||
class TestImages(composertest.ComposerTestCase):
|
|
||||||
def test_ext4_filesystem(self):
|
def test_ext4_filesystem(self):
|
||||||
self.runCliTest("/tests/cli/test_compose_ext4-filesystem.sh")
|
self.runCliTest("/tests/cli/test_compose_ext4-filesystem.sh")
|
||||||
|
|
||||||
@ -22,9 +29,13 @@ class TestImages(composertest.ComposerTestCase):
|
|||||||
def test_tar(self):
|
def test_tar(self):
|
||||||
self.runCliTest("/tests/cli/test_compose_tar.sh")
|
self.runCliTest("/tests/cli/test_compose_tar.sh")
|
||||||
|
|
||||||
|
|
||||||
|
class TestQcow2(composertest.ComposerTestCase):
|
||||||
def test_qcow2(self):
|
def test_qcow2(self):
|
||||||
self.runCliTest("/tests/cli/test_compose_qcow2.sh")
|
self.runCliTest("/tests/cli/test_compose_qcow2.sh")
|
||||||
|
|
||||||
|
|
||||||
|
class TestLiveIso(composertest.ComposerTestCase):
|
||||||
@unittest.skip("https://github.com/weldr/lorax/issues/731")
|
@unittest.skip("https://github.com/weldr/lorax/issues/731")
|
||||||
def test_live_iso(self):
|
def test_live_iso(self):
|
||||||
self.runCliTest("/tests/cli/test_compose_live-iso.sh")
|
self.runCliTest("/tests/cli/test_compose_live-iso.sh")
|
||||||
|
10
test/run
10
test/run
@ -5,7 +5,13 @@
|
|||||||
make vm
|
make vm
|
||||||
|
|
||||||
if [ -n "$TEST_SCENARIO" ]; then
|
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
|
else
|
||||||
test/check-cli
|
test/check-cli TestImages
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user