Skip to content

Commit

Permalink
Merge pull request #600 from nestoracunablanco/fix/checkTargetE2eTest
Browse files Browse the repository at this point in the history
fix: check if TARGET environment variable is set for e2e testing
  • Loading branch information
kubevirt-bot authored Aug 9, 2024
2 parents 5c874b1 + 1f46b56 commit a26ecc9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ function latest_version() {
tail -n1
}

# Check if the TARGET environment variable is set
if [ -z "$TARGET" ]; then
echo "Error: a target is needed: please set the TARGET environment variable"
exit 1
fi

# Latest released Kubevirt version
export KUBEVIRT_VERSION=$(latest_version "kubevirt")

Expand Down

0 comments on commit a26ecc9

Please sign in to comment.