Skip to content

Commit

Permalink
Excluding BenchmarkRootExecCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
doggydogworld committed Aug 15, 2024
1 parent b640e0a commit 0bee17a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,9 @@ test-go-bench: | $(TEST_LOG_DIR)

test-go-bench-root: PACKAGES = $(shell grep --exclude-dir api --include "*_test.go" -lr BenchmarkRoot . | xargs dirname | xargs go list | sort -u)
test-go-bench-root: BENCHMARK_PATTERN = "^BenchmarkRoot"
test-go-bench-root: BENCHMARK_SKIP_PATTERN = "^BenchmarkRootExecCommand$$"
test-go-bench-root: | $(TEST_LOG_DIR)
go test -run ^$$ -bench $(BENCHMARK_PATTERN) -benchtime 1x $(PACKAGES) \
go test -run ^$$ -bench $(BENCHMARK_PATTERN) -skip $(BENCHMARK_SKIP_PATTERN) -benchtime 1x $(PACKAGES) \
| tee $(TEST_LOG_DIR)/bench.txt

# Make sure untagged vnetdaemon code build/tests.
Expand Down

0 comments on commit 0bee17a

Please sign in to comment.