diff options
author | Kate Ward <kate.ward@forestent.com> | 2018-01-16 23:00:35 +0100 |
---|---|---|
committer | Kate Ward <kate.ward@forestent.com> | 2018-01-16 23:00:35 +0100 |
commit | c6b8f1cecce67f0bf806891be16c0eb73da28693 (patch) | |
tree | 782603439222f5260de86f1eedeb8828372ef6f6 | |
parent | a8e81fdb77b054dc28987af82e53ab9a0c107d20 (diff) | |
download | shflags-c6b8f1cecce67f0bf806891be16c0eb73da28693.tar.gz |
Set default values for arg values of th_showOutput().
-rw-r--r-- | shflags_test_helpers | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shflags_test_helpers b/shflags_test_helpers index 971367f..af3db24 100644 --- a/shflags_test_helpers +++ b/shflags_test_helpers @@ -2,7 +2,7 @@ # # shFlags unit test common functions # -# Copyright 2008-2017 Kate Ward. All Rights Reserved. +# Copyright 2008-2018 Kate Ward. All Rights Reserved. # Released under the Apache 2.0 license. # # Author: kate.ward@forestent.com (Kate Ward) @@ -66,9 +66,9 @@ th_oneTimeSetUp() { } th_showOutput() { - _th_rtrn=$1 - _th_stdout=$2 - _th_stderr=$3 + _th_rtrn="${1:-${returnF}}" + _th_stdout="${2:-${stdoutF}}" + _th_stderr="${3:-${stderrF}}" isSkipping if [ $? -eq "${SHUNIT_FALSE}" -a "${_th_rtrn}" != "${FLAGS_TRUE}" ]; then |