diff --git a/manila_tempest_tests/tests/scenario/test_share_basic_ops.py b/manila_tempest_tests/tests/scenario/test_share_basic_ops.py index 4542de6fba..cd772944c8 100644 --- a/manila_tempest_tests/tests/scenario/test_share_basic_ops.py +++ b/manila_tempest_tests/tests/scenario/test_share_basic_ops.py @@ -362,14 +362,11 @@ class ShareBasicOpsBase(manager.ShareScenarioTest): self.share = self.migrate_share( self.share['id'], dest_pool, task_state, force_host_assisted) - read_only = False if force_host_assisted: - try: - ssh_client.exec_command( - "dd if=/dev/zero of=/mnt/f1/1m6.bin bs=1M count=1") - except Exception: - read_only = True - self.assertTrue(read_only) + self.assertRaises( + exceptions.SSHExecCommandFailed, + ssh_client.exec_command, + "dd if=/dev/zero of=/mnt/f1/1m6.bin bs=1M count=1") self.umount_share(ssh_client)