| 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 "Create global_config.ini in autotest directory." | 7 echo "Create global_config.ini in autotest directory." |
| 8 | 8 |
| 9 pushd ${STATEFUL_DIR} | 9 GLOBAL_CONFIG="${STATEFUL_DIR}/home/autotest-client/global_config.ini" |
| 10 | 10 |
| 11 cat > ${STATEFUL_DIR}/home/autotest-client/global_config.ini <<EOF | 11 if [ -f "${GLOBAL_CONFIG}" ]; then |
| 12 echo -e "File ${GLOBAL_CONFIG} already exists." |
| 13 exit 1 |
| 14 fi |
| 15 |
| 16 cat > "${GLOBAL_CONFIG}" <<EOF |
| 12 [CLIENT] | 17 [CLIENT] |
| 13 drop_caches: False | 18 drop_caches: False |
| 14 drop_caches_between_iterations: False | 19 drop_caches_between_iterations: False |
| 15 EOF | 20 EOF |
| 16 | |
| 17 popd | |
| OLD | NEW |