summaryrefslogtreecommitdiff
path: root/cts/cts.py
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2016-10-04 15:08:03 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-05 17:11:35 -0700
commitcab4ccf3f9217692ee092b92871876643b2351de (patch)
tree85ec566d582f100707ad278a2558d1f4ac531ed0 /cts/cts.py
parenta51cee362a5682e83ceee290ee878a13a4f00212 (diff)
downloadchrome-ec-cab4ccf3f9217692ee092b92871876643b2351de.tar.gz
cts: Fix error message for uart port being occupied
This patch fixes the error messages displayed when a UART port connected to DUT or TH is being occupied. BUG=none BRANCH=none TEST=run cts.py -m i2c Change-Id: I3fbb4068e8ee3af7a1b04f70ae70b3d870a19d2e Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/393327
Diffstat (limited to 'cts/cts.py')
-rwxr-xr-xcts/cts.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cts/cts.py b/cts/cts.py
index 2999e4d06f..6a02b065bc 100755
--- a/cts/cts.py
+++ b/cts/cts.py
@@ -324,9 +324,9 @@ class Cts(object):
th_results = self.th.read_tty()
if not dut_results or not th_results:
- msg = ('Output missing from boards. If you have a process reading '
- 'ttyACMx, please kill that process and try again.')
- raise ValueError(bad_cat_message)
+ raise ValueError('Output missing from boards. If you have a process '
+ 'reading ttyACMx, please kill that process and try '
+ 'again.')
self.parse_output(dut_results, th_results)
pretty_results = self.prettify_results()