Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ RF_VENV="${ROOTDIR}/_output/robotenv"
RF_VARIABLES="${SCRIPTDIR}/variables.yaml"
DRYRUN=false
OUTDIR="${ROOTDIR}/_output/e2e-$(date +%Y%m%d-%H%M%S)"
RANDOMIZE=all


function usage {
local -r script_name=$(basename "$0")
cat - <<EOF
${script_name} [-h] [-n] [-o output_dir] [-v venv_dir] [-i var_file] [-k test_names] [test suite files]
${script_name} [-h] [-n] [-o output_dir] [-v venv_dir] [-i var_file] [-k test_names] [-r randomize_value] [test suite files]

Options:

Expand All @@ -25,10 +26,11 @@ Options:
-v DIR The venv directory. (${RF_VENV})
-i PATH The variables file. (${RF_VARIABLES})
-k SKIP_TESTS Comma separated list of tests to skip.
-r RANDOMIZE Define RF Test order (${RANDOMIZE})
EOF
}

while getopts "hno:v:i:k:" opt; do
while getopts "hno:v:i:k:r:" opt; do
case ${opt} in
h)
usage
Expand All @@ -49,6 +51,9 @@ while getopts "hno:v:i:k:" opt; do
k)
SKIP_TESTS=${OPTARG}
;;
r)
RANDOMIZE=${OPTARG}
;;
*)
usage
exit 1
Expand Down Expand Up @@ -85,7 +90,7 @@ if ${DRYRUN}; then
else
# shellcheck disable=SC2086,SC2068
"${RF_BINARY}" \
--randomize all \
--randomize "${RANDOMIZE}" \
--prerunmodifier "${SCRIPTDIR}/resources/SkipTests.py:${SKIP_TESTS:-}" \
--loglevel TRACE \
-V "${RF_VARIABLES}" \
Expand Down