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 <hungte@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
This commit is contained in:
Hung-Te Lin 2011-08-31 16:18:15 +08:00
parent 2fe928ec7a
commit f7f8cd871f

View File

@ -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