TT#56376 selenium: dont execute every .t file in directory by default

testrunner:
- fix so that *.t doesnt select every file in directory, even ones who are
not added to the default test plan yet.

Change-Id: I6ed9057fed87244b7968cdc05f60825941675579
changes/96/30396/6
Nico Schedel 7 years ago
parent 102e2b751b
commit 11cbf1007d

@ -24,9 +24,11 @@ SERVER="${1}"
OUTPUT_DIRECTORY="${2:-/code/}"
OUTPUT_TYPE=${3:-}
shift; shift; shift # remove first three argv to use ${@} below.
declare -a DEFAULT_TEST_PLAN="t/selenium/runner.t"
declare -a CUSTOM_TEST_PLAN=( "${@/#/t/selenium/}" )
declare -a TEST_PLAN=( ${CUSTOM_TEST_PLAN[*]:-${DEFAULT_TEST_PLAN[*]}} )
if [ -z "${1:-}" ] || [ "${1:-}" == '*.t' ]; then
declare -a TEST_PLAN="t/selenium/runner.t"
else
declare -a TEST_PLAN=( "${@/#/t/selenium/}" )
fi
export TESTFILES=${TEST_PLAN[*]}
# workaround for new Selenium::Remote::Driver (see Dockerfile)

Loading…
Cancel
Save