コード例 #1
0
 def mount(self, mount_point):
     if not self.is_mounted():
         if disk_utils.mount(self, mount_point):
             self.mount_point = mount_point
     else:
         TestProperties.LOGGER.error(
             f"Device is already mounted! Actual mount point: {self.mount_point}")
コード例 #2
0
 def mount(self, mount_point, options: [str] = None):
     if not self.is_mounted():
         if disk_utils.mount(self, mount_point, options):
             self.mount_point = mount_point
     else:
         raise Exception(
             f"Device is already mounted! Actual mount point: {self.mount_point}"
         )