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

Unified Diff: src/scripts/run_autotest.sh

Issue 542068: Enhance autotest run inside chroot. (Closed)
Patch Set: format changes only. Created 10 years, 11 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 | « src/scripts/make_autotest.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/run_autotest.sh
diff --git a/src/scripts/run_autotest.sh b/src/scripts/run_autotest.sh
index da785cdd63f81a77c86e676f17cc11269fa58df0..a0b133e1caf9787ae07f57fd08425a4f081594dc 100755
--- a/src/scripts/run_autotest.sh
+++ b/src/scripts/run_autotest.sh
@@ -27,7 +27,6 @@ set -e
AUTOTEST_CHROOT_DEST="/usr/local/autotest"
AUTOTEST_SRC="${GCLIENT_ROOT}/src/third_party/autotest/files"
-echo $AUTOTEST_SRC
CHROOT_AUTHSOCK_PREFIX="/tmp/chromiumos_test_agent"
@@ -50,27 +49,29 @@ then
fi
# Install authkey for testing
-
chmod 400 $FLAGS_test_key
-/usr/bin/ssh-add $FLAGS_test_key 2> /dev/null
+/usr/bin/ssh-add $FLAGS_test_key
if [ -n "${FLAGS_machine}" ]
then
- CLIENT_CONTROL_FILE=${FLAGS_client_control}
# run only a specific test/suite if requested
- if [ ! -n "${CLIENT_CONTROL_FILE}" ]
+ if [ ! -n "${FLAGS_client_control}" ]
then
# Generate meta-control file to run all existing site tests.
CLIENT_CONTROL_FILE=\
- "${AUTOTEST_CHROOT_DEST}/client/site_tests/AllTests/control"
+ "${AUTOTEST_CHROOT_DEST}/client/site_tests/accept_Suite/control"
echo "No control file specified. Running all tests."
+ else
+ CLIENT_CONTROL_FILE=${AUTOTEST_CHROOT_DEST}/${FLAGS_client_control}
fi
# Kick off autosrv for specified test
autoserv_cmd="${AUTOTEST_CHROOT_DEST}/server/autoserv \
-m ${FLAGS_machine} \
-c ${CLIENT_CONTROL_FILE}"
echo "running autoserv: " ${autoserv_cmd}
+ pushd ${AUTOTEST_CHROOT_DEST} 1> /dev/null
${autoserv_cmd}
+ popd 1> /dev/null
else
echo "To execute autotest manually:
eval \$(ssh-agent) # start ssh-agent
« no previous file with comments | « src/scripts/make_autotest.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698