From: Andreas Schneider Date: Mon, 13 Jun 2022 14:08:40 +0000 (+0200) Subject: testprogs: Fix shellcheck errors in test_wintest.sh X-Git-Tag: talloc-2.4.0~1345 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4ba21bc770e17139edf052dc55fd9dd9485b134;p=thirdparty%2Fsamba.git testprogs: Fix shellcheck errors in test_wintest.sh testprogs/blackbox/test_wintest.sh:15:97: error: Double quote array expansions to avoid re-splitting elements. [SC2068] testprogs/blackbox/test_wintest.sh:40:31: error: Double quote array expansions to avoid re-splitting elements. [SC2068] Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- diff --git a/testprogs/blackbox/test_wintest.sh b/testprogs/blackbox/test_wintest.sh index 23f7385cfb7..1015a1ef299 100755 --- a/testprogs/blackbox/test_wintest.sh +++ b/testprogs/blackbox/test_wintest.sh @@ -12,7 +12,7 @@ testwithconf() . $WINTEST_STARTUP fi - testit "smbtorture" $smbtorture //$SERVER/$SHARE RAW-OPEN -W "$DOMAIN" -U"$USERNAME%$PASSWORD" $@ || failed=$(expr $failed + 1) + testit "smbtorture" $smbtorture //$SERVER/$SHARE RAW-OPEN -W "$DOMAIN" -U"$USERNAME%$PASSWORD" "$@" || failed=$(expr $failed + 1) if [ -n "$WINTEST_SHUTDOWN" ]; then . $WINTEST_SHUTDOWN @@ -37,7 +37,7 @@ smbtorture=$samba4bindir/smbtorture . $(dirname $0)/subunit.sh for wintest_conf in $WINTEST_CONF_DIR/*.conf; do - testwithconf "$wintest_conf" $@ + testwithconf "$wintest_conf" "$@" done exit $failed