When installing recovery image, detecting the USB dev path if usb_dev is None.
This change first renames the argument usb_mount_point to usb_dev since it
is not a mount point actually. If this argument is None, it detects the USB
dev path by emulating USB plug/unplug.
BUG=chromium-os:22339
TEST=run_remote_tests.sh --remote=$REMOTE_IP -a "xml_config=$OVERLAY_XML \
servo_vid=0x18d1 servo_pid=0x5001 image=$RECOVERY_IMAGE" \
platform_InstallRecoveryImage
Change-Id: I6a3041c8c1b6d6354a3eb8711fdf1f4ddcf36762
Reviewed-on: https://gerrit.chromium.org/gerrit/13863
Reviewed-by: Todd Broch <tbroch@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
Commit-Ready: Tom Wai-Hong Tam <waihong@chromium.org>
3 files changed