Fix false positive when running test.sh (#212)

Patch #193 introduced a regression in the toml-tests examples, but it was
never caught because test.sh was exiting with a zero status code, even
though the tests failed. This is because of the `|tee` operation when
invoking toml-test, without setting the pipefail option, reporting the
status code of `tee` instead of `toml-test`.
This commit is contained in:
Thomas Pelletier
2018-01-18 14:02:09 -08:00
committed by GitHub
parent 4874e8477b
commit a1b12e18b7
+1
View File
@@ -1,6 +1,7 @@
#!/bin/bash
# fail out of the script if anything here fails
set -e
set -o pipefail
# set the path to the present working directory
export GOPATH=`pwd`