Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Unified Diff: common.sh

Issue 6609016: Select factory image when --factory is given (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mod_image_for_test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common.sh
diff --git a/common.sh b/common.sh
index 09094a8bc82fa9716348a303a8a947df74a08666..18e04cdd9a6ff0ca4718ce1d55fa6256f75b768a 100644
--- a/common.sh
+++ b/common.sh
@@ -645,7 +645,11 @@ prepare_test_image() {
--image="$1/$2" --noinplace ${args}
# From now on we use the just-created test image
- CHROMEOS_RETURN_VAL="$1/${CHROMEOS_TEST_IMAGE_NAME}"
+ if [ ${FLAGS_factory} -eq ${FLAGS_TRUE} ]; then
+ CHROMEOS_RETURN_VAL="$1/${CHROMEOS_FACTORY_TEST_IMAGE_NAME}"
+ else
+ CHROMEOS_RETURN_VAL="$1/${CHROMEOS_TEST_IMAGE_NAME}"
+ fi
}
# Check that the specified file exists. If the file path is empty or the file
« no previous file with comments | « no previous file | mod_image_for_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698