From 67947c94139b04cc3f37c4f313678a4a00422004 Mon Sep 17 00:00:00 2001 From: Dan Jaglowski <dan.jaglowski@bluemedora.com> Date: Thu, 27 May 2021 22:56:28 -0400 Subject: [PATCH] Fix 'make bench' --- Makefile | 2 +- operator/builtin/input/file/benchmark_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e4d22914..be7c4156 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ test-only: .PHONY: bench bench: - $(MAKE) for-all CMD="go test -run=NONE -bench '.*' ./... -benchmem" + go test -benchmem -run=^$$ -bench ^* ./... .PHONY: clean clean: diff --git a/operator/builtin/input/file/benchmark_test.go b/operator/builtin/input/file/benchmark_test.go index db0a1f9e..5df09e48 100644 --- a/operator/builtin/input/file/benchmark_test.go +++ b/operator/builtin/input/file/benchmark_test.go @@ -109,7 +109,7 @@ func BenchmarkFileInput(b *testing.B) { }, }, { - name: "FingerprintLarge", + name: "FngrPrntLarge", paths: []string{ "file0.log", }, @@ -123,7 +123,7 @@ func BenchmarkFileInput(b *testing.B) { }, }, { - name: "FingerprintSmall", + name: "FngrPrntSmall", paths: []string{ "file0.log", },