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

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

Issue 3327007: minor: convert error handling from CmdError to TestError (Closed) Base URL: ssh://git@chromiumos-git/autotest.git
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/factory_LightSensor/factory_LightSensor.py
diff --git a/client/site_tests/factory_LightSensor/factory_LightSensor.py b/client/site_tests/factory_LightSensor/factory_LightSensor.py
index 3c5123896844b3e597f01fa465630c4db9e45f5a..4642df440f793f332054e31ca66371d181e4280e 100644
--- a/client/site_tests/factory_LightSensor/factory_LightSensor.py
+++ b/client/site_tests/factory_LightSensor/factory_LightSensor.py
@@ -61,10 +61,10 @@ class tsl2563():
utils.system(cmd)
time.sleep(1)
if not os.path.isfile(self.PARAMS['rd']):
- raise error.CmdError(cmd + 'did not create' + self.PARAMS['rd'])
+ raise error.TestError(cmd + 'did not create ' + self.PARAMS['rd'])
val = self.read('first',samples=1)
if val <= self.PARAMS['min'] or val >= self.PARAMS['max']:
- raise error.CmdError("Failed initial read\n")
+ raise error.TestError("Failed initial read\n")
def read(self, type, delay=None, samples=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