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/common | |
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/common')
-rw-r--r-- | cts/common/board.py | 6 |
1 files changed, 3 insertions, 3 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): |