From 5f53e5e73271652edfdb035486f5b4f44f02263a Mon Sep 17 00:00:00 2001 From: Ken Mixter Date: Thu, 7 Oct 2010 13:19:19 -0700 Subject: [PATCH] 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 --- image_to_live.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/image_to_live.sh b/image_to_live.sh index b08d0c9501..fa566a6ac8 100755 --- a/image_to_live.sh +++ b/image_to_live.sh @@ -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}"