on xenial help sign in
Use unittest.skipIf
24a102bMichael Terry
tests/autopilot/unity8/shell/tests/test_system_integration.py+2−3
@@ -20,6 +20,7 @@
20"""Tests for system integration."""
20"""Tests for system integration."""
21
21
22import subprocess
22import subprocess
23+import unittest
23
24
24from autopilot import platform
25from autopilot import platform
25from unity8.shell.emulators import UnityEmulatorBase
26from unity8.shell.emulators import UnityEmulatorBase
@@ -31,10 +32,8 @@ class SystemIntegrationTests(UnityTestCase):
31
32
32 scenarios = _get_device_emulation_scenarios()
33 scenarios = _get_device_emulation_scenarios()
33
34
35+ @unittest.skipIf(platform.model() == "Desktop", "Test is broken on otto, see bug 1281634.")
34 def test_networkmanager_integration(self):
36 def test_networkmanager_integration(self):
35− if platform.model() == 'Desktop':
36− self.skipTest("Test is broken on otto, see bug 1281634.")
37−
38 self.launch_unity()
37 self.launch_unity()
39
38
40 # invoke policykit to check permissions
39 # invoke policykit to check permissions