From a1b12e18b745d9143a248f696c48ed12b151be66 Mon Sep 17 00:00:00 2001 From: Thomas Pelletier Date: Thu, 18 Jan 2018 14:02:09 -0800 Subject: [PATCH] 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`. --- test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test.sh b/test.sh index 91a8896..a70a8b0 100755 --- a/test.sh +++ b/test.sh @@ -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`