Skip to content

Commit

Permalink
upgrade integration_test
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Mar 26, 2024
1 parent fd1b70b commit 23d8505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration_test.sh
Expand Up @@ -22,6 +22,7 @@ cp -r "$ROOT_DIR/"* "$GOPATH/src/github.com/google/ko/"

echo "Building ko"

pushd "$GOPATH/src/github.com/google/ko" || exit 1
RESULT="$(GO111MODULE="on" GOFLAGS="-mod=vendor" go build .)"

echo "Beginning scenarios."
Expand All @@ -30,7 +31,6 @@ FILTER="[^ ]local[^ ]*"

echo "1. Go module auto mode should create an image that outputs 'Hello World' when run outside the module."

pushd .. || exit 1
RESULT="$(GO111MODULE=auto GOFLAGS="-mod=vendor" ./ko/ko build --local github.com/go-training/helloworld | grep "$FILTER" | xargs -I% docker run %)"
if [[ "$RESULT" != *"Hello World"* ]]; then
echo "Test FAILED. Saw $RESULT" && exit 1
Expand Down

0 comments on commit 23d8505

Please sign in to comment.