bluetooth: check chameleon host if a test requires chameleon |
||
Issue description
It is more user friendly to raise a test error in the beginning of a
test when the chameleon_host argument is not specified in a test
that requires the specification of the chameleon host. When the
argument is not specified, currently, it would emit a message as follows
which is confusing.
tko parser: 'MOUSE': lambda host:
host.chameleon.get_bluetooth_hid_mouse,
tko parser: AttributeError: 'NoneType' object has no attribute
'get_bluetooth_hid_mouse'
Instead, it would be clearer to emit an error message as follows if the
argument is omitted.
[ FAILED ] ERROR: Have to specify chameleon_host IP.
,
Nov 8 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/chameleon/+/52bf8b0e1378d5dd196323f1c21457645fade6fa commit 52bf8b0e1378d5dd196323f1c21457645fade6fa Author: Joseph Hwang <josephsih@chromium.org> Date: Wed Nov 08 11:12:27 2017 usb_audio_flow: determine usb host mode with serial driver An additional method is supported to determine if the chameleon should boot in the usb host mode. Originally, if the file /etc/default/.usb_host_mode exists, the chameleon would boot in the usb host mode by not entering into the usb device mode. In this patch, if there is a tty device, e.g., /dev/ttyUSB*, which is found with the specified serial driver, ftdi_sio, the chameleon would stay in the usb host mode no matter whether /etc/default/.usb_host_mode exists or not. Note that the usb host mode is required in order to run bluetooth autotests that require bluetooth peripherals. BUG= chromium:780367 TEST=Conduct the following tests On Chameleon board, remove the following file. $ rm /etc/default/.usb_host_mode Reboot chameleon board. Run a bluetooth autotest that requires RN-42. It should pass. (cr) $ test_that --args "chameleon_host=$CHAMELEON_IP" $DUT_IP \ bluetooth_AdapterPairing.mouse Change-Id: I5ea8a252884c09a752a742dfe58290be6b46987f Reviewed-on: https://chromium-review.googlesource.com/752603 Commit-Ready: Shyh-In Hwang <josephsih@chromium.org> Tested-by: Shyh-In Hwang <josephsih@chromium.org> Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org> [modify] https://crrev.com/52bf8b0e1378d5dd196323f1c21457645fade6fa/chameleond/devices/usb_audio_flow.py
,
Nov 10 2017
,
Nov 13 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Nov 5 2017