[Autotest] touch_UpdateErrors: improved logs checking
The firmware updater changes mean lulu now prints "product_id"
instead of "product id". Change the regex to handle both cases.
BUG=chromium:555176
TEST=passes on lulu now
Change-Id: Ieba1f41aae0d606ce9a34514d5d29cdb55572f1d
Previous-Reviewed-on: https://chromium-review.googlesource.com/312709
(cherry picked from commit b908dd3b87e5f57eea03ed983618a3a537538845)
Reviewed-on: https://chromium-review.googlesource.com/313297
Reviewed-by: Katherine Threlkeld <kathrelkeld@chromium.org>
Commit-Queue: Katherine Threlkeld <kathrelkeld@chromium.org>
Tested-by: Katherine Threlkeld <kathrelkeld@chromium.org>
diff --git a/client/site_tests/touch_UpdateErrors/touch_UpdateErrors.py b/client/site_tests/touch_UpdateErrors/touch_UpdateErrors.py
index 99b3887..5c4afe1 100644
--- a/client/site_tests/touch_UpdateErrors/touch_UpdateErrors.py
+++ b/client/site_tests/touch_UpdateErrors/touch_UpdateErrors.py
@@ -73,8 +73,8 @@
log_cmd = 'tail -n +%s /var/log/messages | grep -i touch' % start_line
pass_terms = ['touch-firmware-update',
- '"Product ID[^a-z0-9]*%s"' % hw_id]
- fail_terms = ['error:']
+ '"Product[^a-z0-9]ID[^a-z0-9]*%s"' % hw_id]
+ fail_terms = ['error']
# Check for key terms in touch logs.
for term in pass_terms + fail_terms: