Skip to content

Commit

Permalink
Merge pull request volcano-sh#2888 from lowang-bh/e2e_issue_ginkgo
Browse files Browse the repository at this point in the history
install ginkgo bin if not exist
  • Loading branch information
volcano-sh-bot authored Jun 29, 2023
2 parents a891343 + b6380a5 commit ec0991b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions hack/lib/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,14 @@ function install-helm {
echo -n "Found helm, version: " && helm version
fi
}

function install-ginkgo-if-not-exist {
echo "Checking ginkgo"
which ginkgo >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "Installing ginkgo ..."
go install github.com/onsi/ginkgo/v2/ginkgo
else
echo -n "Found ginkgo, version: " && ginkgo version
fi
}
2 changes: 1 addition & 1 deletion hack/run-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ install-volcano
# Run e2e test
cd ${VK_ROOT}

GO111MODULE=off go get github.com/onsi/ginkgo/ginkgo
install-ginkgo-if-not-exist

case ${E2E_TYPE} in
"ALL")
Expand Down

0 comments on commit ec0991b

Please sign in to comment.