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 |