on xenial help sign in
Suppress output from initctl and add logging on unity8 startup.
commiteb83b8780f1bd5823a34eb783bce74486f45f8e0 authorMichał Sawicz <michal.sawicz@canonical.com> dateMon 14 Oct 2013, 20:40 (13 years ago) parenteeed6d5
1 file changed+2−1
tests/autopilot/unity8/shell/tests/__init__.py+2−1
tests/autopilot/unity8/shell/tests/__init__.py+2−1
@@ -263,6 +263,7 @@ class UnityTestCase(AutopilotTestCase):
263263 return app_proxy
264264
265265 def _launch_unity_with_upstart(self, binary_path, args):
266+ logger.info("Starting unity")
266267 self._patch_environment("QT_LOAD_TESTABILITY", 1)
267268
268269 binary_arg = "BINARY=%s" % binary_path
@@ -289,7 +290,7 @@ class UnityTestCase(AutopilotTestCase):
289290 def _cleanup_launching_upstart_unity(self):
290291 logger.info("Stopping unity")
291292 try:
292− subprocess.check_call(["/sbin/initctl", "stop", "unity8"], stderr=subprocess.STDOUT)
293+ subprocess.check_output(["/sbin/initctl", "stop", "unity8"], stderr=subprocess.STDOUT)
293294 except subprocess.CalledProcessError:
294295 logger.warning("Appears unity was already stopped!")
295296