From de627c9822a33d6497735757d8b0733a298d71c7 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 21 Nov 2014 00:14:17 -0500 Subject: [PATCH] test/runner will now exit with non-zero status on any failure --- test/runner | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/runner b/test/runner index ee9ea69..d95254d 100755 --- a/test/runner +++ b/test/runner @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (C) 2014 LoVullo Associates, Inc. # @@ -40,13 +40,15 @@ htmlindex < EOH -find . -name '*.xspec' | while read spec; do - ../tools/xspec/bin/xspec.sh "$spec" +declare -i status=0 +while read spec; do + ../tools/xspec/bin/xspec.sh "$spec" \ + || status=1 result="$( basename "$spec" .xspec )-result.html" printf '
  • %s
  • ' "$result" "$spec" \ | htmlindex -done +done < <( find . -name '*.xspec' ) htmlindex < @@ -54,3 +56,5 @@ htmlindex < EOF +test "$status" -eq 0 +