script/test: exclude vendored packages from tests
This commit is contained in:
parent
4e617a78bf
commit
5d4ba59b3f
@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
#/ Usage: script/test # run all tests
|
||||
#/ Usage: script/test # run all non-vendored tests
|
||||
#/ script/test <subdir> # run just a package's tests
|
||||
|
||||
script/fmt
|
||||
if [ $# -gt 0 ]; then
|
||||
GO15VENDOREXPERIMENT=0 go test "./$1"
|
||||
else
|
||||
GO15VENDOREXPERIMENT=0 go test ./...
|
||||
GO15VENDOREXPERIMENT=0 go test $(go list ./... | grep -v /vendor/)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user