From 0f2212e7d4b7ee8b4d759219715337b6ce689c94 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 24 Nov 2014 11:13:45 -0500 Subject: [PATCH] test/runner properly fails on xspec non-zero exit --- test/runner | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"