diff options
Diffstat (limited to 'tests/integration_tests/modules/test_power_state_change.py')
-rw-r--r-- | tests/integration_tests/modules/test_power_state_change.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/integration_tests/modules/test_power_state_change.py b/tests/integration_tests/modules/test_power_state_change.py index 5cd19764..dd5bd478 100644 --- a/tests/integration_tests/modules/test_power_state_change.py +++ b/tests/integration_tests/modules/test_power_state_change.py @@ -9,6 +9,8 @@ import pytest from tests.integration_tests.clouds import IntegrationCloud from tests.integration_tests.instances import IntegrationInstance +from tests.integration_tests.integration_settings import PLATFORM +from tests.integration_tests.releases import IS_UBUNTU from tests.integration_tests.util import verify_ordered_items_in_text USER_DATA = """\ @@ -51,8 +53,11 @@ def _can_connect(instance): # run anywhere, I can only get it to run in an lxd container, and even then # occasionally some timing issues will crop up. @pytest.mark.unstable -@pytest.mark.ubuntu -@pytest.mark.lxd_container +@pytest.mark.skipif(not IS_UBUNTU, reason="Only ever tested on Ubuntu") +@pytest.mark.skipif( + PLATFORM != "lxd_container", + reason="Test is unstable but most stable on lxd containers", +) class TestPowerChange: @pytest.mark.parametrize( "mode,delay,timeout,expected", |