on xenial help sign in
whitespace
8c87526Nick Dedekind
tests/autopilot/unity8/process_helpers.py+2
@@ -87,6 +87,7 @@ def unlock_unity(unity_proxy_obj=None):
87 greeter.created.wait_for(False)
87 greeter.created.wait_for(False)
88 logger.info("Greeter unlocked, continuing.")
88 logger.info("Greeter unlocked, continuing.")
89
89
90+
90def lock_unity(unity_proxy_obj=None):
91def lock_unity(unity_proxy_obj=None):
91 """Helper function that attempts to lock unity greeter.
92 """Helper function that attempts to lock unity greeter.
92
93
@@ -136,6 +137,7 @@ def lock_unity(unity_proxy_obj=None):
136 greeter.created.wait_for(True)
137 greeter.created.wait_for(True)
137 logger.info("Greeter locked, continuing.")
138 logger.info("Greeter locked, continuing.")
138
139
140+
139def restart_unity_with_testability(*args):
141def restart_unity_with_testability(*args):
140 """Restarts (or starts) unity with testability enabled.
142 """Restarts (or starts) unity with testability enabled.
141
143