From 6ccca32434357f966fdcc1f362363e9935d28a93 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 30 May 2014 21:39:55 -0400 Subject: [PATCH] Unit Tests - Downgraded bash constructs to sh, reducing the requirements from bash to sh. --- test/run_all.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/run_all.in b/test/run_all.in index 3652c14c5..87c601093 100755 --- a/test/run_all.in +++ b/test/run_all.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! /bin/sh rc=0 if [ x"$1" = x"--verbose" ]; @@ -10,7 +10,10 @@ then while read LINE do echo "$LINE" - done < test.log || rc=1 + done < test.log + if [ $? -ne 0 ]; then + rc=1 + fi rm test.log done exit $rc @@ -39,7 +42,10 @@ else COUNT=`expr $COUNT + 1` fi - $i >> all.log 2>&1 || rc=1 + $i >> all.log 2>&1 + if [ $? -ne 0 ]; then + rc=1 + fi done if [ $BAR -eq 1 ]; then