| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 # | 4 # |
| 5 # Provides common commands for dealing running/building autotest | 5 # Provides common commands for dealing running/building autotest |
| 6 | 6 |
| 7 # Populates the chroot's /usr/local/autotest directory based on | 7 # Populates the chroot's /usr/local/autotest directory based on |
| 8 # the given source directory. | 8 # the given source directory. |
| 9 # args: | 9 # args: |
| 10 # $1 - original source directory | 10 # $1 - original source directory |
| 11 # $2 - target directory |
| 11 function update_chroot_autotest() { | 12 function update_chroot_autotest() { |
| 12 local original=$1 | 13 local original=$1 |
| 13 echo "Updating chroot Autotest from ${original}..." | 14 local target=$2 |
| 14 local autotest_dir="${DEFAULT_CHROOT_DIR}/usr/local/autotest" | 15 echo "Updating chroot Autotest from ${original} to ${target}..." |
| 15 sudo mkdir -p "${autotest_dir}" | 16 sudo mkdir -p "${target}" |
| 16 sudo chmod 777 "${autotest_dir}" | 17 sudo chmod 777 "${target}" |
| 17 cp -fpru ${original}/{client,conmux,server,tko,utils,global_config.ini,shadow_
config.ini} ${autotest_dir} | 18 cp -fpru ${original}/{client,conmux,server,tko,utils,global_config.ini,shadow_
config.ini} ${target} |
| 18 } | 19 } |
| OLD | NEW |