From a134cbe2cb69b4a44697e4dc23370f288b4f5be4 Mon Sep 17 00:00:00 2001 From: Jean Raby Date: Fri, 20 May 2011 19:46:13 +0000 Subject: [PATCH] Fix teststrings.sh to exit != 0 if an error occured. Monotone-Parent: c80984a4695d7e15164ed59ed14c2b823311be38 Monotone-Revision: 986c53393f0caccafae8ec72f8b2d56477f587b6 Monotone-Author: jraby@inverse.ca Monotone-Date: 2011-05-20T19:46:13 Monotone-Branch: ca.inverse.sogo --- Tests/Integration/teststrings.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tests/Integration/teststrings.sh b/Tests/Integration/teststrings.sh index d531e4ed6..6d0f2e5c0 100755 --- a/Tests/Integration/teststrings.sh +++ b/Tests/Integration/teststrings.sh @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash TOPDIR=../.. +RC=0 if [ ! -f teststrings ] then @@ -15,6 +16,9 @@ do then echo "$stringfile: passed"; else - echo "$stringfile: failed (code: $code)"; + echo "$stringfile: FAILED (code: $code)"; + RC=$(($RC+$code)) fi done + +exit $RC