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

Unified Diff: mod_for_factory_scripts/600customizeRelease

Issue 5219001: Clean var formatting in mod_for_factory (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: . Created 10 years, 1 month 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
Index: mod_for_factory_scripts/600customizeRelease
diff --git a/mod_for_factory_scripts/600customizeRelease b/mod_for_factory_scripts/600customizeRelease
index 4975f2d1478b85235f1e2cd11380080e74faa81c..0c8dd21a7697d7b4a693b769b5e992ca8bc884a2 100755
--- a/mod_for_factory_scripts/600customizeRelease
+++ b/mod_for_factory_scripts/600customizeRelease
@@ -6,17 +6,19 @@
TEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/site_tests/suite_Factory"
-pushd ${TEST_DIR} 1> /dev/null
+if [ -d "${TEST_DIR}" ]; then
+ pushd "${TEST_DIR}" >/dev/null
-# If there is a customize_$BOARD script for this board, let's run it.
-# This allows adding settings for specific factories or systems.
-CUSTOMIZE="customize_${BOARD}"
-if [ -e "${CUSTOMIZE}" ]; then
- echo "Running ${CUSTOMIZE}"
- "./${CUSTOMIZE}"
-fi
+ # If there is a customize_$BOARD script for this board, let's run it.
+ # This allows adding settings for specific factories or systems.
+ CUSTOMIZE="customize_${BOARD}"
+ if [ -e "${CUSTOMIZE}" ]; then
+ echo "Running ${CUSTOMIZE}"
+ "./${CUSTOMIZE}"
+ fi
-# We don't need the customize script anymore.
-rm -f customize_*
+ # We don't need the customize script anymore.
+ rm -f customize_*
-popd 1> /dev/null
+ popd >/dev/null
+fi
« mod_for_factory_scripts/500populateQualDbs ('K') | « mod_for_factory_scripts/500populateQualDbs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698