From: Michael Adam Date: Wed, 6 Jul 2011 10:24:13 +0000 (+0200) Subject: s3:test: catch more errors in test_access_check() in the smbclient_s3 test X-Git-Url: http://git.samba.org/?p=kai%2Fsamba.git;a=commitdiff_plain;h=93ad34c4ad1a8c0e68eed0ddf69a332a71ba860c s3:test: catch more errors in test_access_check() in the smbclient_s3 test Autobuild-User: Michael Adam Autobuild-Date: Wed Jul 6 14:07:13 CEST 2011 on sn-devel-104 --- diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh index 167b5ae993a..fa721cb4ea0 100755 --- a/source3/script/tests/test_smbclient_s3.sh +++ b/source3/script/tests/test_smbclient_s3.sh @@ -410,6 +410,14 @@ EOF test_ccache_access() { $WBINFO --ccache-save="${USERNAME}%${PASSWORD}" + ret=$? + + if [ $ret != 0 ] ; then + echo "wbinfo failed to store creds in cache (user='${USERNAME}', pass='${PASSWORD}')" + false + return + fi + $SMBCLIENT //$SERVER_IP/tmp -C -U "${USERNAME}%" \ -c quit 2>&1 ret=$? @@ -421,6 +429,14 @@ test_ccache_access() fi $WBINFO --ccache-save="${USERNAME}%GarBage" + ret=$? + + if [ $ret != 0 ] ; then + echo "wbinfo failed to store creds in cache (user='${USERNAME}', pass='GarBage')" + false + return + fi + $SMBCLIENT //$SERVER_IP/tmp -C -U "${USERNAME}%" \ -c quit 2>&1 ret=$?