test/runner will now fail on non-fatal test errors
parent
f50c2299fa
commit
e96bc07b39
18
test/runner
18
test/runner
|
@ -43,6 +43,16 @@ get-test-list()
|
|||
fi
|
||||
}
|
||||
|
||||
process-results()
|
||||
{
|
||||
awk '
|
||||
BEGIN { status = 0 }
|
||||
{ print }
|
||||
/^ FAILED$/ { status = 1 }
|
||||
END { exit status }
|
||||
'
|
||||
}
|
||||
|
||||
# xspec's output dir
|
||||
mkdir -p "$outdir"
|
||||
rm -f "$index"
|
||||
|
@ -61,8 +71,12 @@ EOH
|
|||
declare -i status=0
|
||||
while read spec; do
|
||||
echo "$spec"
|
||||
../tools/xspec/bin/xspec.sh "$spec" \
|
||||
|| status=1
|
||||
../tools/xspec/bin/xspec.sh "$spec" 2>&1 \
|
||||
| process-results
|
||||
|
||||
if [ $? -ne 0 -o ${PIPESTATUS[1]} -ne 0 ]; then
|
||||
status=1
|
||||
fi
|
||||
|
||||
spec_path="$( dirname "$spec" )/xspec"
|
||||
result="$spec_path/$( basename "$spec" .xspec )-result.html"
|
||||
|
|
Loading…
Reference in New Issue