Make sure to error on test

This works around set -e not working in this scenario.
This commit is contained in:
James Shubin
2016-02-22 00:59:36 -05:00
parent 74aadbadb8
commit ce0d68a8ba
2 changed files with 8 additions and 2 deletions

7
test/test-govet.sh Executable file
View 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