Allow run_remote_tests to learn board instead of default board

If no board is specified for run remote tests,
learn board from device under test instead of using
default board.

BUG=none
TEST= ./run_remote_tests.sh without --board. Verify detects board and
deploys appropriate version for that board.
./run_remote_test.sh with --board x86-mario. Verify that it deploys
that specific board, regardless of target.

Change-Id: I6e71f0f1bf4b2bcfcd3430b29adc16531c6a8c81
Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Chris Sosa <sosa@chromium.org>

Review URL: http://codereview.chromium.org/6580017
This commit is contained in:
Benson Leung 2011-02-24 01:46:14 -08:00
parent fa2dd93743
commit 393c17b0cc

View File

@ -32,11 +32,9 @@ find_common_sh
. "${SCRIPT_ROOT}/remote_access.sh" || die "Unable to load remote_access.sh"
get_default_board
DEFINE_string args "" \
"Command line arguments for test. Quoted and space separated if multiple." a
DEFINE_string board "$DEFAULT_BOARD" \
DEFINE_string board "" \
"The board for which you are building autotest"
DEFINE_boolean build ${FLAGS_FALSE} "Build tests while running" b
DEFINE_string chroot "${DEFAULT_CHROOT_DIR}" "alternate chroot location" c