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

Unified Diff: src/scripts/autotest_lib.sh

Issue 588010: Support multiple chroots (Closed)
Patch Set: Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/scripts/build_autotest.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/autotest_lib.sh
diff --git a/src/scripts/autotest_lib.sh b/src/scripts/autotest_lib.sh
index ac7be63156c9920e73ce5459c171bb2c80056114..b640a9ea70f422a9e8c8746aa428806ceb953626 100644
--- a/src/scripts/autotest_lib.sh
+++ b/src/scripts/autotest_lib.sh
@@ -8,11 +8,12 @@
# the given source directory.
# args:
# $1 - original source directory
+# $2 - target directory
function update_chroot_autotest() {
local original=$1
- echo "Updating chroot Autotest from ${original}..."
- local autotest_dir="${DEFAULT_CHROOT_DIR}/usr/local/autotest"
- sudo mkdir -p "${autotest_dir}"
- sudo chmod 777 "${autotest_dir}"
- cp -fpru ${original}/{client,conmux,server,tko,utils,global_config.ini,shadow_config.ini} ${autotest_dir}
+ local target=$2
+ echo "Updating chroot Autotest from ${original} to ${target}..."
+ sudo mkdir -p "${target}"
+ sudo chmod 777 "${target}"
+ cp -fpru ${original}/{client,conmux,server,tko,utils,global_config.ini,shadow_config.ini} ${target}
}
« no previous file with comments | « no previous file | src/scripts/build_autotest.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698