Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: client/bin/factory.py

Issue 3365003: Fix waiting for ui on reboot. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/bin/factory_ui » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/bin/factory.py
diff --git a/client/bin/factory.py b/client/bin/factory.py
index 585e7e31d2ccda381708115c49a5fd233c41282a..194e60402ad0e2c103a7f440a56793db0f0b31c4 100644
--- a/client/bin/factory.py
+++ b/client/bin/factory.py
@@ -10,7 +10,6 @@
# allow its use by the autotest control process.
-import gobject
import signal
import subprocess
import sys
@@ -325,11 +324,6 @@ class ControlState:
self.activated_kbd_shortcut_test = None
signal.signal(signal.SIGUSR1, self.kill_current_test_callback)
- log('waiting for ui to come up...')
- while self._log_data.get('test_widget_size') is None:
- time.sleep(1)
- self._log_data.read_new_data()
-
def kill_current_test_callback(self, signum, frame):
self._log_data.read_new_data()
active_test_data = self._log_data.get('active_test_data')
@@ -338,6 +332,8 @@ class ControlState:
self._nuke_fn(*active_test_data)
def run_test(self, test):
+ log_shared_data('activated_kbd_shortcut', None)
+
self._status_map.incr_count(test)
self._log_data.read_new_data()
test_tag = self._status_map.lookup_tag(test)
« no previous file with comments | « no previous file | client/bin/factory_ui » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698