crosutils: Fix verify bug with image_to_live without args

Change-Id: I0bcc3dbbf72fbae4bfa11340831d60d28202bb88

BUG=
TEST=Ran with just --remote=... to pick up latest image and it verified.

Review URL: http://codereview.chromium.org/3609003
This commit is contained in:
Ken Mixter 2010-10-07 13:19:19 -07:00
parent e69a464192
commit 5f53e5e732

View File

@ -100,6 +100,13 @@ function start_dev_server {
devserver_flags="${devserver_flags} \
--archive_dir $(reinterpret_path_for_chroot ${FLAGS_archive_dir}) -t"
IMAGE_PATH="${FLAGS_archive_dir}/chromiumos_test_image.bin"
else
# IMAGE_PATH should be the newest image and learn the board from
# the target.
FLAGS_board=""
learn_board
IMAGE_PATH="$($(dirname "$0")/get_latest_image.sh --board="${FLAGS_board}")"
IMAGE_PATH="${IMAGE_PATH}/chromiumos_image.bin"
fi
info "Starting devserver with flags ${devserver_flags}"