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

Side by Side Diff: src/scripts/mod_for_factory_scripts/400configAutotest

Issue 2562001: Fix missing path of factory files. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos
Patch Set: Created 10 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 echo "Create global_config.ini in autotest directory." 7 echo "Configure autotest setting."
8
9 SCRIPT_DIR="${GCLIENT_ROOT}/src/scripts/mod_for_factory_scripts/"
10 AUTOTEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/"
11
12 cp "${SCRIPT_DIR}/factory_ui" "${AUTOTEST_DIR}"
13 chmod +x "${AUTOTEST_DIR}/factory_ui"
14 cp "${SCRIPT_DIR}/factory_startx.sh" "${AUTOTEST_DIR}"
15 chmod +x "${AUTOTEST_DIR}/factory_startx.sh"
8 16
9 GLOBAL_CONFIG="${ROOT_FS_DIR}/usr/local/autotest/global_config.ini" 17 GLOBAL_CONFIG="${ROOT_FS_DIR}/usr/local/autotest/global_config.ini"
10 18
11 if [ -f "${GLOBAL_CONFIG}" ]; then 19 if [ -f "${GLOBAL_CONFIG}" ]; then
12 echo -e "File ${GLOBAL_CONFIG} already exists." 20 echo -e "File ${GLOBAL_CONFIG} already exists."
13 exit 1 21 exit 1
14 fi 22 fi
15 23
16 AUTOTEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/"
17
18 chmod +x factory_ui
19 cp "factory_ui" "${AUTOTEST_DIR}"
20 chmod +x factory_startx.sh
21 cp "factory_startx.sh" "${AUTOTEST_DIR}"
22
23 cat > "${GLOBAL_CONFIG}" <<EOF 24 cat > "${GLOBAL_CONFIG}" <<EOF
24 [CLIENT] 25 [CLIENT]
25 drop_caches: False 26 drop_caches: False
26 drop_caches_between_iterations: False 27 drop_caches_between_iterations: False
27 EOF 28 EOF
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698