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

Unified Diff: src/scripts/autotest_lib.sh

Issue 578027: Make run_remote_tests also update the chroot autotest (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
new file mode 100644
index 0000000000000000000000000000000000000000..ac7be63156c9920e73ce5459c171bb2c80056114
--- /dev/null
+++ b/src/scripts/autotest_lib.sh
@@ -0,0 +1,18 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# Provides common commands for dealing running/building autotest
+
+# Populates the chroot's /usr/local/autotest directory based on
+# the given source directory.
+# args:
+# $1 - original source 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}
+}
« 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