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

Unified Diff: autotest_run.sh

Issue 3048051: autotest_run: kill the destructive stuff that's pwning the autotest installation (Closed) Base URL: ssh://gitrw.chromium.org/crosutils
Patch Set: Remove client/packages hax Created 10 years, 4 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 | run_remote_tests.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autotest_run.sh
diff --git a/autotest_run.sh b/autotest_run.sh
index 5aa7556024b4f9002eb6fcde97c948557f1861af..73907d9f7613e2286b0bf9eb521ec80c8439ac99 100755
--- a/autotest_run.sh
+++ b/autotest_run.sh
@@ -31,7 +31,6 @@ CHROMEOS_ROOT=/home/${USER}/trunk/
# Ensure the configures run by autotest pick up the right config.site
CONFIG_SITE=/usr/share/config.site
-AUTOTEST_SRC="${CHROMEOS_ROOT}/src/third_party/autotest/files"
[ -z "${FLAGS_board}" ] && \
die "You must specify --board="
@@ -46,25 +45,9 @@ function teardown_ssh() {
ssh-agent -k > /dev/null
}
-function copy_src() {
- local dst=$1
- mkdir -p "${dst}"
- cp -fpru "${AUTOTEST_SRC}"/{client,conmux,server,tko,utils} "${dst}" || die
- cp -fpru "${AUTOTEST_SRC}/shadow_config.ini" "${dst}" || die
-}
-
src_test() {
- # claim ownership of the staging area
- sudo chown -R ${USER} "${BUILD_RUNTIME}"
- sudo chmod -R 755 "${BUILD_RUNTIME}"
-
- local third_party="${CHROMEOS_ROOT}/src/third_party"
- copy_src "${BUILD_RUNTIME}"
- cp -fpru "${AUTOTEST_SRC}/global_config.ini" "${BUILD_RUNTIME}"
-
- # ensure that no tests are ever built
- sed -e 's/enable_server_prebuild: .*/enable_server_prebuild: False/' -i \
- "${BUILD_RUNTIME}"/global_config.ini
+ # TODO: These places currently need to be writeable but shouldn't be
+ sudo chmod a+w ${BUILD_RUNTIME}/server/{tests,site_tests}
setup_ssh
cd "${BUILD_RUNTIME}"
« no previous file with comments | « no previous file | run_remote_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698