Add auto-input of serial number
1. Auto input serial number by matching regexp in 'lsusb -v' output
2. Add root cause of test fail after each testing is finished.
This could help factory to quickly classify the fail cause on the
line.
BUG=None
TEST=Manually, assume serial number is stored in iManufacturer field
Add the item to test_list (replace CameraIdentifier to vendor's name)
OperatorTest(
id='CameraPerformance',
label_zh=u'相机效能',
autotest_name='factory_CameraPerformanceAls',
dargs={'test_type': 'Module',
'use_als': False,
'log_good_image' : True,
'auto_serial_number': ('CameraIdentifier', r'^\s*iManufacturer\s+\S+\s+(\S+)')
}),
Change-Id: Icd498c142772b2c066360cca595b080d442e0aed
Reviewed-on: https://gerrit.chromium.org/gerrit/57299
Reviewed-by: Tai-Hsu Lin <sheckylin@chromium.org>
Commit-Queue: Justin Chuang <jchuang@chromium.org>
Tested-by: Justin Chuang <jchuang@chromium.org>
2 files changed