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

Unified Diff: src/scripts/mod_for_factory_scripts/400configAutotest

Issue 1816004: Change the path of qualified_components to the autotest directory. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos
Patch Set: Fix name Created 10 years, 8 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 | src/scripts/mod_for_factory_scripts/500copyQualDb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/mod_for_factory_scripts/400configAutotest
diff --git a/src/scripts/mod_for_factory_scripts/400configAutotest b/src/scripts/mod_for_factory_scripts/400configAutotest
index 360a7e0cd7b9af8c3ea776c7196ce1ddefc1fca8..5eb3b86a40c72c56beec44b26ff25f4ab5302936 100755
--- a/src/scripts/mod_for_factory_scripts/400configAutotest
+++ b/src/scripts/mod_for_factory_scripts/400configAutotest
@@ -6,12 +6,15 @@
echo "Create global_config.ini in autotest directory."
-pushd ${STATEFUL_DIR}
+GLOBAL_CONFIG="${STATEFUL_DIR}/home/autotest-client/global_config.ini"
-cat > ${STATEFUL_DIR}/home/autotest-client/global_config.ini <<EOF
+if [ -f "${GLOBAL_CONFIG}" ]; then
+ echo -e "File ${GLOBAL_CONFIG} already exists."
+ exit 1
+fi
+
+cat > "${GLOBAL_CONFIG}" <<EOF
[CLIENT]
drop_caches: False
drop_caches_between_iterations: False
EOF
-
-popd
« no previous file with comments | « no previous file | src/scripts/mod_for_factory_scripts/500copyQualDb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698