Skip to content

Commit 895ca2b

Browse files
authored
Propagate benchmark failure (#25)
1 parent ddda16d commit 895ca2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

makefiles/bench.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ bench: bench-run bench-stat-diff bench-stat
88

99
## Run benchmark, iterations count controlled by BENCH_COUNT, default 5.
1010
bench-run:
11-
@$(GO) test -bench=. -count=$(BENCH_COUNT) -run=^a ./... | tee bench-$(REF_NAME).txt || (cat bench-$(REF_NAME).txt && exit 1)
11+
@set -o pipefail && $(GO) test -bench=. -count=$(BENCH_COUNT) -run=^a ./... | tee bench-$(REF_NAME).txt
1212

1313
## Show benchmark comparison with base branch.
1414
bench-stat-diff:

0 commit comments

Comments
 (0)