Skip to content

Commit

Permalink
Updated e2e script to better handle focus and skip
Browse files Browse the repository at this point in the history
Signed-off-by: rjsadow <richard.j.sadowski@gmail.com>
  • Loading branch information
rjsadow committed Jan 18, 2024
1 parent 2d4c13d commit 4779b22
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hack/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,14 @@ fi
if [[ ${CONFORMANCE} == "true" ]]; then
EXTRA_ARGS="${EXTRA_ARGS} --conformance"
else
EXTRA_ARGS="${EXTRA_ARGS} --focus ${FOCUS} --skip ${SKIP}"
# If FOCUS is set, add --focus to the EXTRA_ARGS
if [[ ! -z ${FOCUS} ]]; then
EXTRA_ARGS="${EXTRA_ARGS} --focus '${FOCUS}'"
fi
# If SKIP is set, add --skip to the EXTRA_ARGS
if [[ ! -z ${SKIP} ]]; then
EXTRA_ARGS="${EXTRA_ARGS} --skip ${SKIP}"
fi
fi

setup_kind
Expand Down

0 comments on commit 4779b22

Please sign in to comment.