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

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

Issue 3473008: Prevent uninitialized variable in factory_WriteGBB (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 10 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/factory_WriteGBB/factory_WriteGBB.py
diff --git a/client/site_tests/factory_WriteGBB/factory_WriteGBB.py b/client/site_tests/factory_WriteGBB/factory_WriteGBB.py
index 73542536674039df2d60d8af18401dd582d31233..4648592ad037416291c9d6fc6501211b8069c693 100644
--- a/client/site_tests/factory_WriteGBB/factory_WriteGBB.py
+++ b/client/site_tests/factory_WriteGBB/factory_WriteGBB.py
@@ -21,6 +21,10 @@ class factory_WriteGBB(test.test):
if 'part_id_hwqual' in shared_dict:
id = shared_dict['part_id_hwqual'].replace(' ', '_')
component_file = 'data_*/components_%s' % id
+ else:
+ raise error.TestError(
+ 'You need to run this test from factory UI, and have ' +
+ 'successfully completed the HWQual-ID matching test ')
component_files = glob.glob(component_file)
if len(component_files) != 1:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698