s3:test: catch more errors in test_access_check() in the smbclient_s3 test
authorMichael Adam <obnox@samba.org>
Wed, 6 Jul 2011 10:24:13 +0000 (12:24 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 6 Jul 2011 12:07:13 +0000 (14:07 +0200)
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Jul  6 14:07:13 CEST 2011 on sn-devel-104

source3/script/tests/test_smbclient_s3.sh

index 167b5ae993a1bc50de2a12211076616f6a1778bd..fa721cb4ea06830f03d2c962cf2b51fa8111cbe3 100755 (executable)
@@ -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=$?