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

Unified Diff: client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py

Issue 3104020: Refactor -- make ui passive watcher, control a passive test list. (Closed) Base URL: http://src.chromium.org/git/autotest.git
Patch Set: rebase against ToT 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 | « client/bin/factory_ui_lib.py ('k') | client/site_tests/suite_Factory/control » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py
diff --git a/client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py b/client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py
index f42df375bbf339197e78d3b2e8b99da1545929c1..5ae943233b64850e037e122e8bfb009d17eaa8f7 100644
--- a/client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py
+++ b/client/site_tests/factory_ExternalStorage/factory_ExternalStorage.py
@@ -71,7 +71,7 @@ class factory_ExternalStorage(test.test):
window.connect('key-release-event', self.key_release_callback)
window.add_events(gtk.gdk.KEY_RELEASE_MASK)
- def rescan_storage(self, test_tag):
+ def rescan_storage(self, subtest_tag):
if self._state == _STATE_WAIT_INSERT:
new_devices = find_all_storage_dev()
diff = new_devices - self._devices
@@ -87,7 +87,7 @@ class factory_ExternalStorage(test.test):
test._result = self.job.run_test('hardware_StorageFio',
dev=devpath,
quicktest=True,
- tag=test_tag)
+ tag=subtest_tag)
self._prompt.set_text(_REMOVE_FMT_STR(self._media))
self._state = _STATE_WAIT_REMOVE
self._image = self.removal_image
@@ -107,8 +107,7 @@ class factory_ExternalStorage(test.test):
def run_once(self,
test_widget_size=None,
trigger_set=None,
- test_tag_prefix=None,
- test_count=None,
+ subtest_tag=None,
media=None):
factory.log('%s run_once' % self.__class__)
@@ -134,8 +133,7 @@ class factory_ExternalStorage(test.test):
assert len(image_size_set) == 1
image_size = image_size_set.pop()
- test_tag = '%s_%s' % (test_tag_prefix, test_count)
- factory.log('test_tag = %s' % test_tag)
+ factory.log('subtest_tag = %s' % subtest_tag)
self._ft_state = ful.State(trigger_set)
@@ -150,7 +148,7 @@ class factory_ExternalStorage(test.test):
self._image = self.insertion_image
self._result = False
self._devices = find_all_storage_dev()
- gobject.timeout_add(250, self.rescan_storage, test_tag)
+ gobject.timeout_add(250, self.rescan_storage, subtest_tag)
drawing_area = gtk.DrawingArea()
drawing_area.set_size_request(*image_size)
« no previous file with comments | « client/bin/factory_ui_lib.py ('k') | client/site_tests/suite_Factory/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698