From 7e12aadbbdbceaaf707f1851b91f72f8a3a0584f Mon Sep 17 00:00:00 2001 From: Tom Wai-Hong Tam Date: Mon, 7 Jun 2010 16:11:24 +0800 Subject: [PATCH] Fix missing path of factory files. Review URL: http://codereview.chromium.org/2562001 --- mod_for_factory_scripts/400configAutotest | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/mod_for_factory_scripts/400configAutotest b/mod_for_factory_scripts/400configAutotest index 50187528b1..a848c97454 100755 --- a/mod_for_factory_scripts/400configAutotest +++ b/mod_for_factory_scripts/400configAutotest @@ -4,7 +4,15 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -echo "Create global_config.ini in autotest directory." +echo "Configure autotest setting." + +SCRIPT_DIR="${GCLIENT_ROOT}/src/scripts/mod_for_factory_scripts/" +AUTOTEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/" + +cp "${SCRIPT_DIR}/factory_ui" "${AUTOTEST_DIR}" +chmod +x "${AUTOTEST_DIR}/factory_ui" +cp "${SCRIPT_DIR}/factory_startx.sh" "${AUTOTEST_DIR}" +chmod +x "${AUTOTEST_DIR}/factory_startx.sh" GLOBAL_CONFIG="${ROOT_FS_DIR}/usr/local/autotest/global_config.ini" @@ -13,13 +21,6 @@ if [ -f "${GLOBAL_CONFIG}" ]; then exit 1 fi -AUTOTEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/" - -chmod +x factory_ui -cp "factory_ui" "${AUTOTEST_DIR}" -chmod +x factory_startx.sh -cp "factory_startx.sh" "${AUTOTEST_DIR}" - cat > "${GLOBAL_CONFIG}" <