mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 14:31:46 +01:00
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:
parent
91e5b35e7a
commit
47518898af
@ -227,7 +227,21 @@ function main() {
|
|||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
echo_color "yellow" ">>> Running ${type} test " ${control_file}
|
echo_color "yellow" ">>> Running ${type} test " ${control_file}
|
||||||
|
local control_file_name=$(basename "${control_file}")
|
||||||
local short_name=$(basename $(dirname "${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_name="${short_name}"
|
||||||
local results_dir="${TMP_INSIDE_CHROOT}/${results_dir_name}"
|
local results_dir="${TMP_INSIDE_CHROOT}/${results_dir_name}"
|
||||||
rm -rf "${results_dir}"
|
rm -rf "${results_dir}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user