From 23d85057ffcee17a957d92bd507aab1169f927fc Mon Sep 17 00:00:00 2001 From: cpanato Date: Tue, 26 Mar 2024 13:50:05 +0100 Subject: [PATCH] upgrade integration_test Signed-off-by: cpanato --- integration_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_test.sh b/integration_test.sh index 182f1e95e6..e4c6fba2b1 100755 --- a/integration_test.sh +++ b/integration_test.sh @@ -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." @@ -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