diff --git a/test/runner b/test/runner index 03bdf83..4176ecf 100755 --- a/test/runner +++ b/test/runner @@ -74,9 +74,8 @@ while read spec; do ../tools/xspec/bin/xspec.sh "$spec" 2>&1 \ | process-results - if [ $? -ne 0 -o ${PIPESTATUS[1]} -ne 0 ]; then - status=1 - fi + test ${PIPESTATUS[0]} -eq 0 -a ${PIPESTATUS[1]} -eq 0 \ + || status=1 spec_path="$( dirname "$spec" )/xspec" result="$spec_path/$( basename "$spec" .xspec )-result.html"