Skip to content

Commit

Permalink
If the mountpoint already exists, carry on
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jun 20, 2024
1 parent d3d4b04 commit 883b691
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testlib/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,9 @@ def mount(self, fs_path):
:rtype: str
"""
mountpoint = os.path.join(self.mount_root, os.path.basename(fs_path))
os.mkdir(mountpoint)
try:
os.mkdir(mountpoint)
except FileExistsError:
pass
subprocess.check_call([MOUNT, fs_path, mountpoint])
return mountpoint

0 comments on commit 883b691

Please sign in to comment.