Skip to content

Commit cdc0c48

Browse files
authored
Fix performance test output (#1221)
1 parent 0696d83 commit cdc0c48

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ official-image-integration-test: $(SELECTED_PACKAGE) build-mock-management-plane
173173
go test -v ./test/integration/managementplane ./test/integration/auxiliarycommandserver
174174

175175
performance-test:
176-
@mkdir -p $(TEST_BUILD_DIR)
177-
@CGO_ENABLED=0 $(GOTEST) -count 10 -timeout 6m -bench=. -benchmem -run=^$$ ./... > $(TEST_BUILD_DIR)/benchmark.txt
178-
@cat $(TEST_BUILD_DIR)/benchmark.txt
176+
mkdir -p $(TEST_BUILD_DIR)
177+
bash -c 'CGO_ENABLED=0 $(GOTEST) -count 10 -timeout 6m -bench=. -benchmem -run=^$$ ./... | tee $(TEST_BUILD_DIR)/benchmark.txt; test $${PIPESTATUS[0]} -eq 0'
179178

180179
compare-performance-benchmark-results:
181180
@$(GORUN) $(BENCHSTAT) $(OLD_BENCHMARK_RESULTS_FILE) $(TEST_BUILD_DIR)/benchmark.txt

0 commit comments

Comments
 (0)