on xenial help sign in
Use AlreadyLaunchedUpstart so that tests passes

Approved by: Michael Terry

commit5dc0e2946a4f005d363b86da14af1179bfce6265 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 15 Sep 2015, 12:05 (11 years ago) parent7ee2c21cc58f43
1 file changed+2−1
tests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py+2−1
tests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py+2−1
@@ -24,6 +24,7 @@ import os
2424import threading
2525
2626from autopilot.platform import model
27+from autopilot.application import _launcher
2728
2829from unity8 import process_helpers
2930from unity8.application_lifecycle import tests
@@ -118,7 +119,7 @@ class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
118119
119120 process_helpers.lock_unity()
120121
121− self.launch_upstart_application(application_name)
122+ self.launch_upstart_application(application_name, [], _launcher.AlreadyLaunchedUpstartLauncher)
122123 greeter = self.main_window.get_greeter()
123124 greeter.wait_swiped_away()
124125 process_helpers.unlock_unity()