From eadadaa17b1c4484cce1392fee20134c2b4d1d1a Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Tue, 15 Dec 2020 16:42:03 -0500 Subject: integration_tests: restrict test_lxd_bridge appropriately (#730) On xenial, the bridge test fails because xenial's LXD doesn't include the `network` subcommand. On bionic, the bridge test fails within containers, because LXD isn't able to manipulate the host kernel as it expects. (focal and later do run successfully in containers, but we don't have a good way of expressing that presently.) --- tests/integration_tests/modules/test_lxd_bridge.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/integration_tests') diff --git a/tests/integration_tests/modules/test_lxd_bridge.py b/tests/integration_tests/modules/test_lxd_bridge.py index f68c6f2d..cbf11179 100644 --- a/tests/integration_tests/modules/test_lxd_bridge.py +++ b/tests/integration_tests/modules/test_lxd_bridge.py @@ -24,6 +24,7 @@ lxd: """ +@pytest.mark.no_container @pytest.mark.user_data(USER_DATA) class TestLxdBridge: @@ -32,6 +33,7 @@ class TestLxdBridge: """Check that the expected LXD binaries are installed""" assert class_client.execute(["which", binary_name]).ok + @pytest.mark.not_xenial @pytest.mark.sru_2020_11 def test_bridge(self, class_client): """Check that the given bridge is configured""" -- cgit v1.2.3