diff --git a/Makefile b/Makefile index 0b4e015cde..fc693fba06 100644 --- a/Makefile +++ b/Makefile @@ -30,11 +30,11 @@ test: $(GOBIN)/tparse $(GOTEST) -timeout 2m -json ./... \ | tee output.json | $(GOBIN)/tparse -follow -all [ -z "${GITHUB_STEP_SUMMARY}" ] \ - || NO_COLOR=1 $(GOBIN)/tparse -format markdown -file output.json -all >${GITHUB_STEP_SUMMARY} + || NO_COLOR=1 $(GOBIN)/tparse -format markdown -file output.json -all >${GITHUB_STEP_SUMMARY:-/dev/null} .PHONY: test_functional test_functional: $(GOBIN)/tparse $(GOTEST) -timeout 12m -tags=functional -json ./... \ | tee output.json | $(GOBIN)/tparse -follow -all - [ -z "${GITHUB_STEP_SUMMARY}" ] \ - || NO_COLOR=1 $(GOBIN)/tparse -format markdown -file output.json -all >${GITHUB_STEP_SUMMARY} + [ -z "${GITHUB_STEP_SUMMARY:-}" ] \ + || NO_COLOR=1 $(GOBIN)/tparse -format markdown -file output.json -all >${GITHUB_STEP_SUMMARY:-/dev/null}