summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/modules/lxd_bridge.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/testcases/modules/lxd_bridge.py')
-rw-r--r--tests/cloud_tests/testcases/modules/lxd_bridge.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases/modules/lxd_bridge.py b/tests/cloud_tests/testcases/modules/lxd_bridge.py
index f6011dee..8697ae99 100644
--- a/tests/cloud_tests/testcases/modules/lxd_bridge.py
+++ b/tests/cloud_tests/testcases/modules/lxd_bridge.py
@@ -7,6 +7,15 @@ from tests.cloud_tests.testcases import base
class TestLxdBridge(base.CloudTestCase):
"""Test LXD module."""
+ def setUp(self):
+ """Skip on cosmic for two reasons:
+ a.) LP: #1795036 - 'lxd init' fails on cosmic kernel.
+ b.) apt install lxd installs via snap which can be slow
+ as that will download core snap and lxd."""
+ if self.os_name == "cosmic":
+ raise self.skipTest('Skipping test on cosmic (LP: #1795036).')
+ return base.CloudTestCase.setUp(self)
+
def test_lxd(self):
"""Test lxd installed."""
out = self.get_data_file('lxd')