def cifsMountAs(self, userName, userPass):
     status= TestCifsUtils.do_cifsMount('common/', userName, userPass)
     if status != 8192:      
         self.assertEqual(status, 0, 'CIFS Mount failure')
     return status
示例#2
0
 def cifsMountAs(self, userArea, userName, userPass):
     status = TestCifsUtils.do_cifsMount('private/' + userArea, userName,
                                         userPass)
     if status != 8192:
         self.assertEqual(status, 0, 'CIFS Mount failure')
     return status
 def cifsMountAs(self, access, userArea, userName, userPass):
     status = TestCifsUtils.do_cifsMount(access + "/" + userArea, userName, userPass)
     if status != 32 * 256:  # 32 is exit status for mount failure: just return status
         self.assertEqual(status, 0, "CIFS Mount failure")
     return status
示例#4
0
 def cifsMountAs(self, userArea, userName, userPass):
     status = TestCifsUtils.do_cifsMount("shared/" + userArea, userName, userPass)
     if status != 8192:
         self.assertEqual(status, 0, "CIFS Mount failure")
     return status
示例#5
0
 def cifsMountAs(self, access, userArea, userName, userPass):
     status = TestCifsUtils.do_cifsMount(access + '/' + userArea, userName,
                                         userPass)
     if status != 32 * 256:  # 32 is exit status for mount failure: just return status
         self.assertEqual(status, 0, 'CIFS Mount failure')
     return status