From 47518898afe6d2e64e081a0c997af5cf464979ef Mon Sep 17 00:00:00 2001 From: Eric Li Date: Wed, 6 Oct 2010 10:12:27 -0700 Subject: [PATCH] Support run multiple control file under the same test directory. Change-Id: I1ad0aaec6517758812bf4ba0460ab0c81a6f84cb BUG=7357 TEST=run_remote_tests.sh ... bvt regression and then observer both bvt and regression test result Review URL: http://codereview.chromium.org/3603012 --- run_remote_tests.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/run_remote_tests.sh b/run_remote_tests.sh index da3fbd5ea2..25282088cc 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}"