OLD | NEW |
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 "Configure autotest setting." | 7 echo "Configure autotest setting." |
8 | 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" | |
16 | |
17 GLOBAL_CONFIG="${ROOT_FS_DIR}/usr/local/autotest/global_config.ini" | 9 GLOBAL_CONFIG="${ROOT_FS_DIR}/usr/local/autotest/global_config.ini" |
18 | 10 |
19 if [ -f "${GLOBAL_CONFIG}" ]; then | 11 if [ -f "${GLOBAL_CONFIG}" ]; then |
20 echo -e "File ${GLOBAL_CONFIG} already exists." | 12 echo -e "File ${GLOBAL_CONFIG} already exists." |
21 exit 1 | 13 exit 1 |
22 fi | 14 fi |
23 | 15 |
24 cat > "${GLOBAL_CONFIG}" <<EOF | 16 cat > "${GLOBAL_CONFIG}" <<EOF |
25 [CLIENT] | 17 [CLIENT] |
26 drop_caches: False | 18 drop_caches: False |
27 drop_caches_between_iterations: False | 19 drop_caches_between_iterations: False |
28 EOF | 20 EOF |
OLD | NEW |