From 6e52e19e3bfe7979edb4b264b8b155fdd54dc473 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 5 Oct 2017 20:17:24 -0700 Subject: [PATCH] [master] use backquotes not $() --- bin/tests/system/cds/tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/cds/tests.sh b/bin/tests/system/cds/tests.sh index ed399bd92a..03c7c49fba 100644 --- a/bin/tests/system/cds/tests.sh +++ b/bin/tests/system/cds/tests.sh @@ -16,11 +16,13 @@ die() { echo "I:failed" status=1 } + ck() { local x=$1 die=: shift echo "I:$name" - if [ $x != $("$@" 2>err 1>out; echo $?) ] + result=`"$@" > out 2> err; echo $?` + if [ "$x" -ne "$result" ] then echo "D:exit status does not match $y" die=die fi @@ -30,6 +32,7 @@ ck() { rm -f err out xerr xout unset name err out } + ckerr() { if [ -n "${err:=}" ] then egrep "$err" err >/dev/null && @@ -41,6 +44,7 @@ ckerr() { sed 's/^/D:/' err die=die } + ckout() { cmp out "${out:-empty}" >/dev/null && return echo "D:stdout did not match '$out'"