on xenial help sign in
Fix the test
1526af5Andrea Cimitan
tests/autopilot/unity8/shell/tests/test_system_integration.py+1−1
@@ -31,5 +31,5 @@ class SystemIntegrationTests(UnityTestCase):
31 scenarios = _get_device_emulation_scenarios()
31 scenarios = _get_device_emulation_scenarios()
32
32
33 def test_networkmanager_integration(self):
33 def test_networkmanager_integration(self):
34− retvalue = os.system("pkcheck --action-id org.freedesktop.NetworkManager.enable-disable-network --process $$")
34+ retvalue = os.system("pkcheck --action-id org.freedesktop.NetworkManager.enable-disable-network --process `pidof -s unity8`")
35 self.assertThat(retvalue, Equals(0))
35 self.assertThat(retvalue, Equals(0))