diff options
Diffstat (limited to 'tests/integration_tests/bugs/test_lp1897099.py')
-rw-r--r-- | tests/integration_tests/bugs/test_lp1897099.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/integration_tests/bugs/test_lp1897099.py b/tests/integration_tests/bugs/test_lp1897099.py index 1f5030ce..b0981790 100644 --- a/tests/integration_tests/bugs/test_lp1897099.py +++ b/tests/integration_tests/bugs/test_lp1897099.py @@ -7,6 +7,8 @@ https://bugs.launchpad.net/cloud-init/+bug/1897099 import pytest +from tests.integration_tests.integration_settings import PLATFORM + USER_DATA = """\ #cloud-config bootcmd: @@ -19,7 +21,9 @@ swap: @pytest.mark.user_data(USER_DATA) -@pytest.mark.no_container("Containers cannot configure swap") +@pytest.mark.skipif( + PLATFORM == "lxd_container", reason="Containers cannot configure swap" +) def test_fallocate_fallback(client): log = client.read_from_file("/var/log/cloud-init.log") assert "/swap.img" in client.execute("cat /proc/swaps") |