Exclude more concurrency-sensitive dirs from fmt test
Peter Rabbitson committed
Mar 15, 2020 at 20:46 UTC
5d3247f9b774fd8c0bab1641e870c3d91e965ec0
1 file changed
+4
-1
bin/test-go-fmt
+4
-1
@@ -1,7 +1,10 @@
1
#!/usr/bin/env bash
2
set -euo pipefail
3
T="$(mktemp)"
4
-find . -name '*.go' '!' -path ./plugin/loader/preload.go | xargs gofmt -l > "$T"
4
+find . \
5
+ -path ./test/sharness -prune \
6
+ -o -path ./plugin/loader/preload.go -prune \
7
+ -o -name '*.go' -print0 | xargs -0 gofmt -l > "$T"
8
9
if [ -n "$(cat $T)" ]; then
10
echo "Following Go code is not formatted."