diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh index a7bffcbd632..0ae85e8e647 100755 --- a/source3/script/tests/test_smbclient_s3.sh +++ b/source3/script/tests/test_smbclient_s3.sh @@ -346,6 +346,17 @@ test_msdfs_link() tmpfile=$PREFIX/smbclient.in.$$ prompt=" msdfs-target " + cmd='$SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/msdfs-share -I $SERVER_IP $ADDARGS -m nt1 -c dir 2>&1' + out=`eval $cmd` + ret=$? + + if [ $ret != 0 ] ; then + echo "$out" + echo "failed listing msfds-share\ with error $ret" + false + return + fi + cat > $tmpfile <