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

Unified Diff: client/bin/factory.py

Issue 3156047: modify factory_Wipe to fit into new flow (with factory_Verify) (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: fix as reviewer suggeted 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/site_tests/factory_Wipe/factory_Wipe.py » ('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 3d5a3270f4e8489693ed60c24acab8a257d3edb0..294b4fb7c9a72b6c94d11b61c0ab475ee05c4ceb 100644
--- a/client/bin/factory.py
+++ b/client/bin/factory.py
@@ -29,6 +29,7 @@ STATUS_CODE_MAP = {
LOG_PATH = '/var/log/factory.log'
DATA_PREFIX = 'FACTORY_DATA:'
+FINAL_VERIFICATION_TEST_UNIQUE_NAME = 'factory_Verify'
def log(s):
print >> sys.stderr, 'FACTORY: ' + s
@@ -36,6 +37,12 @@ def log(s):
def log_shared_data(key, value):
print >> sys.stderr, '%s %s=%s' % (DATA_PREFIX, key, repr(value))
+def lookup_status_by_unique_name(unique_name, test_list, status_file_path):
+ """ quick way to determine the status of given test """
+ status_map = StatusMap(test_list, status_file_path)
+ testdb = status_map.test_db
+ xtest = testdb.get_test_by_unique_name(unique_name)
+ return status_map.lookup_status(xtest)
class FactoryTest:
def __repr__(self):
« no previous file with comments | « no previous file | client/site_tests/factory_Wipe/factory_Wipe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698