test/runner properly fails on xspec non-zero exit

master
Mike Gerwitz 2014-11-24 11:13:45 -05:00
parent 8a204534f0
commit 0f2212e7d4
1 changed files with 2 additions and 3 deletions

View File

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