diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2016-10-04 15:08:03 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-05 17:11:35 -0700 |
commit | cab4ccf3f9217692ee092b92871876643b2351de (patch) | |
tree | 85ec566d582f100707ad278a2558d1f4ac531ed0 /cts | |
parent | a51cee362a5682e83ceee290ee878a13a4f00212 (diff) | |
download | chrome-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')
-rw-r--r-- | cts/common/board.py | 6 | ||||
-rwxr-xr-x | cts/cts.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cts/common/board.py b/cts/common/board.py index 7b09e2a9f1..a36ca1a3a7 100644 --- a/cts/common/board.py +++ b/cts/common/board.py @@ -167,9 +167,9 @@ class Board(object): except (IOError, OSError): continue if not tty: - raise ValueError('Unable to read ' + self.name + '\n' - 'If you are running cat on a ttyACMx file,\n' - 'please kill that process and try again') + raise ValueError('Unable to read ' + self.board + '. If you are running ' + 'cat on a ttyACMx file, please kill that process and ' + 'try again') self.tty = tty def read_tty(self): 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() |