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

Unified Diff: autotest_run.sh

Issue 5212003: Remove the dependency to autotest_run.sh so I can get rid of it in next CL. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: patch Created 10 years, 1 month 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
deleted file mode 100755
index 17774074e2a5ae12a7d57ffe93f8edff885d545b..0000000000000000000000000000000000000000
--- a/autotest_run.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/bash
-
-# 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.
-
-# This script is intended as a wrapper to execute autotest tests for a given
-# board.
-
-# Load common constants. This should be the first executable line.
-# The path to common.sh should be relative to your script's location.
-. "$(dirname "$0")/common.sh"
-
-# Script must be run inside the chroot
-restart_in_chroot_if_needed $*
-get_default_board
-
-DEFINE_string board "${DEFAULT_BOARD}" \
- "The board to run tests for."
-
-FLAGS_HELP="usage: $0 <flags>"
-FLAGS "$@" || exit 1
-eval set -- "${FLAGS_ARGV}"
-
-# Define a directory which will not be cleaned by portage automatically. So we
-# could achieve incremental build between two autoserv runs.
-BUILD_RUNTIME="/build/${FLAGS_board}/usr/local/autotest/"
-
-# Hack: set the CHROMEOS_ROOT variable by hand here
-CHROMEOS_ROOT=/home/${USER}/trunk/
-
-# Ensure the configures run by autotest pick up the right config.site
-CONFIG_SITE=/usr/share/config.site
-
-[ -z "${FLAGS_board}" ] && \
- die "You must specify --board="
-
-function setup_ssh() {
- eval $(ssh-agent) > /dev/null
- # TODO(jrbarnette): This is a temporary hack, slated for removal
- # before it was ever created. It's a bug, and you should fix it
- # right away!
- chmod 400 \
- ${CHROMEOS_ROOT}/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa
- ssh-add \
- ${CHROMEOS_ROOT}/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa
-}
-
-function teardown_ssh() {
- ssh-agent -k > /dev/null
-}
-
-src_test() {
- # 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}"
-
- local args=()
- if [[ -n ${AUTOSERV_TEST_ARGS} ]]; then
- args=("-a" "${AUTOSERV_TEST_ARGS}")
- fi
-
- local timestamp=$(date +%Y-%m-%d-%H.%M.%S)
-
- # Do not use sudo, it'll unset all your environment
- LOGNAME=${USER} ./server/autoserv -r /tmp/results.${timestamp} \
- ${AUTOSERV_ARGS} "${args[@]}"
-
- teardown_ssh
-}
-
-src_test
« 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