diff options
author | Martin Thomson <martin.thomson@gmail.com> | 2016-09-22 13:52:50 +1000 |
---|---|---|
committer | Martin Thomson <martin.thomson@gmail.com> | 2016-09-22 13:52:50 +1000 |
commit | 9faf4ff027f669ba4d39770ab342ccb570fd6d08 (patch) | |
tree | 3c0b9a1bc3cbc3471c927a343a4956be33ddca7e /tests/bogo | |
parent | b6a2236b52c651695ed55f311bca8353234bbd69 (diff) | |
download | nss-hg-9faf4ff027f669ba4d39770ab342ccb570fd6d08.tar.gz |
Bug 1304476 - Don't buffer bogo output, r=ttaubert
Diffstat (limited to 'tests/bogo')
-rwxr-xr-x[-rw-r--r--] | tests/bogo/bogo.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/bogo/bogo.sh b/tests/bogo/bogo.sh index 0b047bcb2..291bb1f84 100644..100755 --- a/tests/bogo/bogo.sh +++ b/tests/bogo/bogo.sh @@ -42,15 +42,15 @@ bogo_cleanup() # Need to add go to the PATH. export PATH=$PATH:/usr/lib/go-1.6/bin -SOURCE_DIR=$(echo $PWD/../..) +cd "$(dirname "$0")" +SOURCE_DIR="$PWD"/../.. bogo_init (cd "$BORING"/ssl/test/runner; GOPATH="$PWD" go test -pipe -shim-path "${BINDIR}"/nss_bogo_shim \ -loose-errors -allow-unimplemented \ -shim-config "${SOURCE_DIR}/external_tests/nss_bogo_shim/config.json") \ - 1>bogo.log 2>bogo.errors -html_msg $? 0 "Bogo" "Run successfully" -cat bogo.log -grep -i 'exit status 1\|FAILED\|Assertion failure' bogo.errors + 2>bogo.errors | tee bogo.log +html_msg "${PIPESTATUS[0]}" 0 "Bogo" "Run successfully" +grep -i 'FAILED\|Assertion failure' bogo.errors html_msg $? 1 "Bogo" "No failures" bogo_cleanup |