summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2020-01-17 13:51:45 -0800
committerCommit Bot <commit-bot@chromium.org>2020-01-18 02:21:58 +0000
commit794d7443506b63781379dae37a05a29825bbd8ef (patch)
tree319e2994df163262b83f4218069ecbb06240281d /extra
parent771dd33b149fb94725edf0e29670207b9a013cb6 (diff)
downloadchrome-ec-794d7443506b63781379dae37a05a29825bbd8ef.tar.gz
tigertool: fix regex
Change $ to \s in regex. BUG=None (tigertail serserialno fail TEST=./tigertool.py --setserialno test BRANCH=none Change-Id: I006ff8e70b3d20be44590c2050f9e341f10a2d53 Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2008450 Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r--extra/tigertool/ecusb/tiny_servo_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/tigertool/ecusb/tiny_servo_common.py b/extra/tigertool/ecusb/tiny_servo_common.py
index c2a3992198..185f2a67d1 100644
--- a/extra/tigertool/ecusb/tiny_servo_common.py
+++ b/extra/tigertool/ecusb/tiny_servo_common.py
@@ -115,7 +115,7 @@ def do_serialno(serialno, pty):
ptyError: on command interface error.
"""
cmd = 'serialno set %s' % serialno
- regex = 'Serial number: (.*)$'
+ regex = 'Serial number:\s+(\S+)'
results = pty._issue_cmd_get_results(cmd, [regex])[0]
sn = results[1].strip().strip('\n\r')