diff --git a/src/tools/xce-build.sh b/src/tools/xce-build.sh index 4ed966ec..15841679 100755 --- a/src/tools/xce-build.sh +++ b/src/tools/xce-build.sh @@ -392,7 +392,9 @@ case "$COMPONENT" in # `go test` only short-circuited the list -- set -e ignores every # command of an && list but the last -- so the build reported # success and skipped the xcecli tests. - (cd frontend/apiserver && CGO_ENABLED=0 go test "${GO_TEST_JOB_OPTS[@]}" ./store/... ./utils/... ./controllers/... ./backend/... -count=1) + # bug-1965: every apiserver package (./... skips vendor/); a fixed + # list had left out middleware, router, cmd and models. + (cd frontend/apiserver && CGO_ENABLED=0 go test "${GO_TEST_JOB_OPTS[@]}" ./... -count=1) (cd frontend/xcecli && CGO_ENABLED=0 go test "${GO_TEST_JOB_OPTS[@]}" ./... -count=1) fi ;; @@ -445,7 +447,9 @@ case "$COMPONENT" in # `go test` only short-circuited the list -- set -e ignores every # command of an && list but the last -- so the build reported # success and skipped the xcecli tests. - (cd frontend/apiserver && CGO_ENABLED=0 go test "${GO_TEST_JOB_OPTS[@]}" ./store/... ./utils/... ./controllers/... ./backend/... -count=1) + # bug-1965: every apiserver package (./... skips vendor/); a fixed + # list had left out middleware, router, cmd and models. + (cd frontend/apiserver && CGO_ENABLED=0 go test "${GO_TEST_JOB_OPTS[@]}" ./... -count=1) (cd frontend/xcecli && CGO_ENABLED=0 go test "${GO_TEST_JOB_OPTS[@]}" ./... -count=1) fi ;;