OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 | 7 |
8 # DESCRIPTION : | 8 # DESCRIPTION : |
9 # | 9 # |
10 # This UI is intended to be used by the factory autotest suite to | 10 # This UI is intended to be used by the factory autotest suite to |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 325 |
326 ful.hide_cursor(window.window) | 326 ful.hide_cursor(window.window) |
327 | 327 |
328 test_widget_allocation = test_widget_box.get_allocation() | 328 test_widget_allocation = test_widget_box.get_allocation() |
329 test_widget_size = (test_widget_allocation.width, | 329 test_widget_size = (test_widget_allocation.width, |
330 test_widget_allocation.height) | 330 test_widget_allocation.height) |
331 factory.log_shared_data('test_widget_size', test_widget_size) | 331 factory.log_shared_data('test_widget_size', test_widget_size) |
332 | 332 |
333 console = Console(console_box.get_allocation()) | 333 console = Console(console_box.get_allocation()) |
334 | 334 |
| 335 print 'Factory UI ready.' |
| 336 sys.stdout.flush() |
| 337 |
335 factory.log('factory_ui setup done, starting gtk.main()...') | 338 factory.log('factory_ui setup done, starting gtk.main()...') |
336 | 339 |
337 gtk.main() | 340 gtk.main() |
338 | 341 |
339 factory.log('factory_ui gtk.main() finished, exiting.') | 342 factory.log('factory_ui gtk.main() finished, exiting.') |
340 | 343 |
341 if __name__ == '__main__': | 344 if __name__ == '__main__': |
342 | 345 |
343 if len(sys.argv) != 4: | 346 if len(sys.argv) != 4: |
344 print ('usage: %s <test list path> <status file path> <control pid>' % | 347 print ('usage: %s <test list path> <status file path> <control pid>' % |
345 sys.argv[0]) | 348 sys.argv[0]) |
346 test_list_path, status_file_path, control_pid_str = sys.argv[1:] | 349 test_list_path, status_file_path, control_pid_str = sys.argv[1:] |
347 control_pid = int(control_pid_str) | 350 control_pid = int(control_pid_str) |
348 | 351 |
349 execfile(test_list_path) | 352 execfile(test_list_path) |
350 | 353 |
351 main(TEST_LIST, status_file_path, control_pid) | 354 main(TEST_LIST, status_file_path, control_pid) |
OLD | NEW |