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
This commit is contained in:
Eric Li 2010-10-06 10:12:27 -07:00
parent 91e5b35e7a
commit 47518898af

View File

@ -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}"