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

Unified Diff: run_remote_tests.sh

Issue 3341028: Fixed run_remote_test.sh to work properly with the new location of chrome tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: updates Created 10 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: run_remote_tests.sh
diff --git a/run_remote_tests.sh b/run_remote_tests.sh
index 87738872c942819be2517de2c2797bbb22b6a29c..3296289fe0c5dba5251c6ff2ae1c1ad9f3d2ace2 100755
--- a/run_remote_tests.sh
+++ b/run_remote_tests.sh
@@ -163,9 +163,13 @@ function main() {
fi
local control_files_to_run=""
-
+ local chrome_autotests="${CHROME_ROOT}/src/chrome/test/chromeos/autotest/files"
# Now search for tests which unambiguously include the given identifier
local search_path=$(echo {client,server}/{tests,site_tests})
+ # Include chrome autotest in the search path
+ if [ -n "${CHROME_ROOT}" ]; then
+ search_path="${search_path} ${chrome_autotests}/client/site_tests"
+ fi
pushd ${autotest_dir} > /dev/null
for test_request in $FLAGS_ARGV; do
test_request=$(remove_quotes "${test_request}")
@@ -210,6 +214,10 @@ function main() {
# Assume a line starts with TEST_TYPE =
control_file=$(remove_quotes "${control_file}")
local type=$(read_test_type "${autotest_dir}/${control_file}")
+ # Check if the control file is an absolute path (i.e. chrome autotests case)
+ if [[ ${control_file:0:1} == "/" ]]; then
+ type=$(read_test_type "${control_file}")
+ fi
local option
if [[ "${type}" == "client" ]]; then
option="-c"
@@ -245,6 +253,13 @@ function main() {
autotest="./autotest${WORKON_SUFFIX}"
fi
+ # Remove chrome autotest location prefix from control_file if needed
+ if [[ ${control_file:0:${#chrome_autotests}} == \
+ "${chrome_autotests}" ]]; then
+ control_file="${control_file:${#chrome_autotests}+1}"
+ echo_color "yellow" ">>> Running chrome autotest " ${control_file}
+ fi
+
${enter_chroot} ${autotest} --board "${FLAGS_board}" -m "${FLAGS_remote}" \
--ssh-port ${FLAGS_ssh_port} \
"${option}" "${control_file}" -r "${results_dir}" ${verbose} \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698