Skip to content

Commit 1b7463c

Browse files
author
Alvar Viana
authored
(tests) Fix problems with the make junit-report (#339)
* Change > for tee * Detect problems when build fails
1 parent d5675c3 commit 1b7463c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GNUmakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ testacc: fmtcheck
4242

4343
junit-report: fmtcheck
4444
@go install github.com/jstemmer/go-junit-report/v2@latest
45-
CGO_ENABLED=1 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -tags=$(TEST_SUITE) -timeout 120m -race -parallel=1 2>&1 > output.txt
45+
CGO_ENABLED=1 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -tags=$(TEST_SUITE) -timeout 120m -race -parallel=1 2>&1 | tee output.txt
46+
! grep -q "\[build failed\]" output.txt
4647
go-junit-report -in output.txt -out junit-report.xml
4748

4849
vet:

0 commit comments

Comments
 (0)