do not start new tests after the first test failure

Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
xin.li 2022-06-29 08:44:37 +08:00
parent 4a243f447a
commit f827c33f4b
1 changed files with 3 additions and 3 deletions

View File

@ -110,9 +110,9 @@ release-chart:
.PHONY: test
test:
go test --race --v ./pkg/...
go test --race --v ./cmd/...
go test --race --v ./examples/...
for s in $(go list ./pkg/...); do if ! go test -race -failfast -v -p 1 $s; then break; fi; done
for s in $(go list ./cmd/...); do if ! go test -race -failfast -v -p 1 $s; then break; fi; done
for s in $(go list ./examples/...); do if ! go test -race -failfast -v -p 1 $s; then break; fi; done
upload-images: images
@echo "push images to $(REGISTRY)"