add junit report to build (#7599)

* add junit report

* remove istio.test.env argument
This commit is contained in:
Hongyi Zhang 2020-06-19 21:26:25 +00:00 committed by GitHub
parent ee8927ea74
commit 691d286cf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -2,9 +2,12 @@ export TIMEOUT ?= 30m
# gocache disabled by -count=1
# tests in different packages forced to be sequential by -p=1
doc.test: init
@${GO} test ${REPO_ROOT}/tests/setup/... -v -timeout=${TIMEOUT} -count=1 -p=1 \
-istio.test.env=kube -istio.test.hub=$(HUB) -istio.test.tag=$(TAG)
doc.test: init | $(JUNIT_REPORT)
@${GO} test ${REPO_ROOT}/tests/setup/... \
-v -timeout=${TIMEOUT} -count=1 -p=1 \
-istio.test.hub=$(HUB) \
-istio.test.tag=$(TAG) \
2>&1 | tee >($(JUNIT_REPORT) > $(JUNIT_OUT))
doc.test.help:
@echo "The command \"make doc.test\" accepts three optional environment variables."