From 5d3247f9b774fd8c0bab1641e870c3d91e965ec0 Mon Sep 17 00:00:00 2001 From: Peter Rabbitson Date: Sun, 15 Mar 2020 20:46:55 +0100 Subject: [PATCH] Exclude more concurrency-sensitive dirs from fmt test --- bin/test-go-fmt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/test-go-fmt b/bin/test-go-fmt index 5b17f2d5c..a9e6d5a73 100755 --- a/bin/test-go-fmt +++ b/bin/test-go-fmt @@ -1,7 +1,10 @@ #!/usr/bin/env bash set -euo pipefail T="$(mktemp)" -find . -name '*.go' '!' -path ./plugin/loader/preload.go | xargs gofmt -l > "$T" +find . \ + -path ./test/sharness -prune \ + -o -path ./plugin/loader/preload.go -prune \ + -o -name '*.go' -print0 | xargs -0 gofmt -l > "$T" if [ -n "$(cat $T)" ]; then echo "Following Go code is not formatted."