OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 # |
| 5 # Provides common commands for dealing running/building autotest |
| 6 |
| 7 # Populates the chroot's /usr/local/autotest directory based on |
| 8 # the given source directory. |
| 9 # args: |
| 10 # $1 - original source directory |
| 11 function update_chroot_autotest() { |
| 12 local original=$1 |
| 13 echo "Updating chroot Autotest from ${original}..." |
| 14 local autotest_dir="${DEFAULT_CHROOT_DIR}/usr/local/autotest" |
| 15 sudo mkdir -p "${autotest_dir}" |
| 16 sudo chmod 777 "${autotest_dir}" |
| 17 cp -fpru ${original}/{client,conmux,server,tko,utils,global_config.ini,shadow_
config.ini} ${autotest_dir} |
| 18 } |
OLD | NEW |