Update go vet command line

Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
This commit is contained in:
Serguei Bezverkhi 2019-12-20 12:00:14 -05:00
parent c243f4945b
commit a63c55f46a
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ script:
- "gofmt -l $(find . -name '*.go' | tr '\\n' ' ') >/dev/null" - "gofmt -l $(find . -name '*.go' | tr '\\n' ' ') >/dev/null"
# Check whether files were not gofmt'ed. # Check whether files were not gofmt'ed.
- "gosrc=$(find . -name '*.go' | tr '\\n' ' '); [ $(gofmt -l $gosrc 2>&- | wc -l) -eq 0 ] || (echo 'gofmt was not run on these files:'; gofmt -l $gosrc 2>&-; false)" - "gosrc=$(find . -name '*.go' | tr '\\n' ' '); [ $(gofmt -l $gosrc 2>&- | wc -l) -eq 0 ] || (echo 'gofmt was not run on these files:'; gofmt -l $gosrc 2>&-; false)"
- go tool vet . - go vet .
- go test ./... - go test ./...
- go test -c github.com/google/nftables - go test -c github.com/google/nftables
- sudo ./nftables.test -test.v -run_system_tests - sudo ./nftables.test -test.v -run_system_tests