From f7f8cd871fda32773824c2f6628c0c67850fe871 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Wed, 31 Aug 2011 16:18:15 +0800 Subject: [PATCH] build_image: fix --factory output file name BUG=chromium-os:19868 TEST=build_image --factory # see output as chromiumos_factory_image.bin build_image --test # see output as chromiumos_test_image.bin Change-Id: Ice1aa576cfe297db0900e6c42de8d362aa94729a Reviewed-on: http://gerrit.chromium.org/gerrit/6993 Tested-by: Hung-Te Lin Reviewed-by: Richard Barnette --- build_image | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_image b/build_image index d96ddf8270..7cc75bf467 100755 --- a/build_image +++ b/build_image @@ -238,7 +238,10 @@ if [ ${FLAGS_withdev} -eq ${FLAGS_TRUE} ]; then fi # Create a test or factory test image if desired -if [ ${FLAGS_test} -eq ${FLAGS_TRUE} ]; then +if [ ${FLAGS_factory} -eq ${FLAGS_TRUE} ]; then + copy_image "$DEVELOPER_IMG" "$FACTORY_IMG" + mod_image_for_test "${FACTORY_IMG}" +elif [ ${FLAGS_test} -eq ${FLAGS_TRUE} ]; then copy_image "$DEVELOPER_IMG" "$TEST_IMG" mod_image_for_test "${TEST_IMG}" fi