Skip to content

Commit

Permalink
Add filter label parameter for functional tests (#3566)
Browse files Browse the repository at this point in the history
* add parameter

Signed-off-by: Thomas-David Griedel <[email protected]>

* make it explicit again

Signed-off-by: Thomas-David Griedel [email protected]

---------

Signed-off-by: Thomas-David Griedel <[email protected]>
Signed-off-by: Thomas-David Griedel [email protected]
  • Loading branch information
Davo911 authored Jan 7, 2025
1 parent 50c590a commit fe46b62
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions hack/build/run-functional-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,23 @@ fi
export TESTS_WORKDIR=${CDI_DIR}/tests
ginkgo_args="--trace --timeout=8h --v"

if [[ -n "$CDI_E2E_SKIP" ]]; then
ginkgo_args="${ginkgo_args} --skip=${CDI_E2E_SKIP}"
if [[ -n "$CDI_LABEL_FILTER" ]]; then
ginkgo_args="${ginkgo_args} --label-filter=${CDI_LABEL_FILTER}"
fi

if [[ -n "$CDI_E2E_FOCUS" || -n "$CDI_E2E_SKIP" ]]; then
ginkgo_args="${ginkgo_args} --nodes=6"
if [[ -n "$CDI_E2E_SKIP" ]]; then
ginkgo_args="${ginkgo_args} --skip=${CDI_E2E_SKIP}"
fi

if [[ "$CDI_E2E_FOCUS" =~ /.+\.go/ ]]; then
ginkgo_args="${ginkgo_args} --focus-file=${CDI_E2E_FOCUS}"
elif [[ -n "$CDI_E2E_FOCUS" ]]; then
ginkgo_args="${ginkgo_args} --focus=${CDI_E2E_FOCUS}"
fi


if [[ -n "$CDI_E2E_FOCUS" || -n "$CDI_E2E_SKIP" ]]; then
ginkgo_args="${ginkgo_args} --nodes=6"
fi

${TESTS_OUT_DIR}/ginkgo ${ginkgo_args} ${TESTS_OUT_DIR}/tests.test -- ${test_args}
)

0 comments on commit fe46b62

Please sign in to comment.