Skip to content

Commit

Permalink
add env var handling to integration test script
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Apr 22, 2023
1 parent b8a0aed commit 5176071
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions repeated-integration-tests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ if [ -z "${ITEST_IMG_VERSION}" ]; then
ITEST_IMG_VERSION="${ITEST_IMG_VERSION,,}" # lowercase
fi

if [ -z "${PULL_IMAGES}" ]; then
PULL_IMAGES="always"
fi

function cleanup() {
if podman pod exists "${POD_NAME}"; then
"${MVN}" exec:exec@destroy-pod
Expand All @@ -47,6 +51,9 @@ trap cleanup EXIT
cleanup

STARTFLAGS=(
"-DfailIfNoTests=true"
"-Dcryostat.imageVersion=${ITEST_IMG_VERSION}"
"-Dcryostat.itest.pullImages=${PULL_IMAGES}"
"build-helper:regex-property@image-tag-to-lower"
"exec:exec@create-pod"
"exec:exec@start-jfr-datasource"
Expand All @@ -57,8 +64,6 @@ STARTFLAGS=(
"exec:exec@wait-for-grafana"
"failsafe:integration-test"
"failsafe:verify"
"-DfailIfNoTests=true"
"-Dcryostat.imageVersion=${ITEST_IMG_VERSION}"
)

if [ -n "$2" ]; then
Expand Down

0 comments on commit 5176071

Please sign in to comment.