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

Unified Diff: run_remote_tests.sh

Issue 3603012: Support run multiple control file under the same test directory. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: patch Created 10 years, 2 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 da3fbd5ea245e2e6350a864ce2d75c32f491b77c..25282088cc4d832c75b1b41b9cb40ac033ef3c25 100755
--- a/run_remote_tests.sh
+++ b/run_remote_tests.sh
@@ -227,7 +227,21 @@ function main() {
fi
echo ""
echo_color "yellow" ">>> Running ${type} test " ${control_file}
+ local control_file_name=$(basename "${control_file}")
local short_name=$(basename $(dirname "${control_file}"))
+
+ # testName/control --> testName
+ # testName/control.bvt --> testName.bvt
+ # testName/control.regression --> testName.regression
+ # testName/some_control --> testName.some_control
+ if [[ "${control_file_name}" != control ]]; then
+ if [[ "${control_file_name}" == control.* ]]; then
+ short_name=${short_name}.${control_file_name/control./}
+ else
+ short_name=${short_name}.${control_file_name}
+ fi
+ fi
+
local results_dir_name="${short_name}"
local results_dir="${TMP_INSIDE_CHROOT}/${results_dir_name}"
rm -rf "${results_dir}"
« 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