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

Side by Side Diff: client/bin/factory_ui

Issue 3151032: Add unique_name test attr, fix UI active test selection, clean up test_list. (Closed) Base URL: http://src.chromium.org/git/autotest.git
Patch Set: sequences get unique_name too 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 unified diff | Download patch
« no previous file with comments | « client/bin/factory.py ('k') | client/site_tests/suite_Factory/test_list » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 for t in self._status_map.test_db.seq_test_set) 194 for t in self._status_map.test_db.seq_test_set)
195 195
196 def set_active_test(self, test): 196 def set_active_test(self, test):
197 '''Control what kind of widget is shown in the testing area of 197 '''Control what kind of widget is shown in the testing area of
198 the screen. For normal operator tests, this is just a label 198 the screen. For normal operator tests, this is just a label
199 saying there is no active test. The expectation is that the 199 saying there is no active test. The expectation is that the
200 operator test itself has a window obscuring this message. For 200 operator test itself has a window obscuring this message. For
201 automated sequences, since there is no other window, the no 201 automated sequences, since there is no other window, the no
202 active test message is replaced with an updated list of 202 active test message is replaced with an updated list of
203 subtest status.''' 203 subtest status.'''
204 if test == self.active_test: 204 if test is None or test == self.active_test:
205 return 205 return
206 factory.log('UI active test -> %s' %
207 self._status_map.test_db.get_unique_details(test))
206 self.active_test = test 208 self.active_test = test
207 self._test_widget_box.remove(self._active_test_widget) 209 self._test_widget_box.remove(self._active_test_widget)
208 active_widget = (test in self._status_map.test_db.seq_test_set 210 active_widget = (test in self._status_map.test_db.seq_test_set
209 and self._automated_seq_widget_map[test] 211 and self._automated_seq_widget_map[test]
210 or self._empty_test_widget) 212 or self._empty_test_widget)
211 self._test_widget_box.add(active_widget) 213 self._test_widget_box.add(active_widget)
212 self._active_test_widget = active_widget 214 self._active_test_widget = active_widget
213 self._window.show_all() 215 self._window.show_all()
214 216
215 217
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 console = Console(console_box.get_allocation()) 318 console = Console(console_box.get_allocation())
317 319
318 factory.log('factory_ui setup done, starting gtk.main()...') 320 factory.log('factory_ui setup done, starting gtk.main()...')
319 321
320 gtk.main() 322 gtk.main()
321 323
322 factory.log('factory_ui gtk.main() finished, exiting.') 324 factory.log('factory_ui gtk.main() finished, exiting.')
323 325
324 if __name__ == '__main__': 326 if __name__ == '__main__':
325 main() 327 main()
OLDNEW
« no previous file with comments | « client/bin/factory.py ('k') | client/site_tests/suite_Factory/test_list » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698