Fix TypeError: issue seen in system_integration autopilot test on image 279. Fixes: 1303685
commitf7af8d944c8c6f446891bb6f08e3c1fdfff799f8
authorAlexander Sack <asac@ubuntu.com>
dateThu 10 Apr 2014, 10:02 (13 years ago)
parentd466fe97a11663
tests/autopilot/unity8/shell/tests/test_system_integration.py+1−1
@@ -37,5 +37,5 @@ class SystemIntegrationTests(UnityTestCase):
3737 self.launch_unity()
3838
3939 # invoke policykit to check permissions
40− pid = subprocess.check_output("pidof -s unity8", shell=True)
40+ pid = subprocess.check_output(["pidof", "-s", "unity8"], universal_newlines=True)
4141 subprocess.check_call("pkcheck --action-id org.freedesktop.NetworkManager.enable-disable-network --process " + pid, shell=True)