From 80ed1eba094be2bfcb397538ff942a02a3aabd2b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 5 Mar 2014 09:21:17 +0000 Subject: [PATCH] Gave up use of PIPESTATUS in releng/run_all_auto because of NetBSD /bin/sh --- releng/run_all_auto | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/releng/run_all_auto b/releng/run_all_auto index c98357d4..1ba8f774 100755 --- a/releng/run_all_auto +++ b/releng/run_all_auto @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 2011 George Danchev -# Copyright 2011 Thomas Schmitt +# Copyright 2011 - 2014 Thomas Schmitt # Licensed under GNU GPL version 2 or later set -e @@ -147,17 +147,10 @@ fi T1=`date '+%s'` set +e - if test -n "$PIPESTATUS" - then - # PIPESTATUS[0] should be available in bash - ./${s} ${PASSED_OPTIONS} 2>&1 | count_lines >> ${CLOG} - RET="${PIPESTATUS[0]}" - else - # a more portable method which uses a temporary file to record exit value - return_wrapper ./${s} ${PASSED_OPTIONS} 2>&1 | count_lines >> ${CLOG} - RET=$(cat "$return_value_file") - rm "$return_value_file" - fi + return_wrapper ./${s} ${PASSED_OPTIONS} 2>&1 | count_lines >> ${CLOG} + RET=$(cat "$return_value_file") + rm "$return_value_file" + # echo "RET='$RET'" >/dev/tty T2=`date '+%s'`