From 88170814182e3b0676946e5a9cff2b79a4a3256e Mon Sep 17 00:00:00 2001 From: Zdenek Behan Date: Fri, 6 Aug 2010 11:26:23 -0700 Subject: [PATCH] autotest_run: kill the destructive stuff that's pwning the autotest installation * Also changes the way how "new workflow" is detected in run_remote_tests.sh modified: autotest_run.sh modified: run_remote_tests.sh Review URL: http://codereview.chromium.org/3048051 --- autotest_run.sh | 21 ++------------------- run_remote_tests.sh | 2 +- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/autotest_run.sh b/autotest_run.sh index 5aa7556024..73907d9f76 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}" diff --git a/run_remote_tests.sh b/run_remote_tests.sh index 6b4fbf5bc5..1653ee8e7f 100755 --- a/run_remote_tests.sh +++ b/run_remote_tests.sh @@ -269,7 +269,7 @@ function main() { RAN_ANY_TESTS=${FLAGS_TRUE} # HACK: Temporary hack for cros-workon conversion - [[ -n "${WORKON_AUTOTEST}" ]] && WORKON_SUFFIX=_workon + [[ -n "${CROS_WORKON_SRCROOT}" ]] && WORKON_SUFFIX=_workon local enter_chroot="" local autotest="${GCLIENT_ROOT}/src/scripts/autotest${WORKON_SUFFIX}"