Add hardware I2C probing test

This simple probing test is based on command line utility i2cdetect.
A probing function is generally useful for verifying the connections
and cables to external i2c peripherals.

BUG=chrome-os-partner:9739
TEST=manual
  Edit factory test_list, add a new item:
    OperatorTest(
        id='Probe_3_44',
	has_ui=False,
        autotest_name='hardware_I2CProbe',
        never_fails=True,
        dargs={'bus': 3,
               'addr': 0x44),
  Run factory test and see the item pass

Change-Id: I94308c001c0bd5a5de88c9bcb5289bc10b7ed969
Reviewed-on: https://gerrit.chromium.org/gerrit/22800
Reviewed-by: Chinyue Chen <chinyue@chromium.org>
Commit-Ready: Rong Chang <rongchang@chromium.org>
Tested-by: Rong Chang <rongchang@chromium.org>
1 file changed