Make sure to error on test
This works around set -e not working in this scenario.
This commit is contained in:
7
test/test-govet.sh
Executable file
7
test/test-govet.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
# check that go vet passes
|
||||
echo running test-govet.sh
|
||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir!
|
||||
cd "${ROOT}"
|
||||
|
||||
go vet && echo PASS || exit 1 # since it doesn't output an ok message on pass
|
||||
Reference in New Issue
Block a user