Skip to content

Commit

Permalink
Fix getting mount for different operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Feb 21, 2024
1 parent 698f7cb commit 3671fdb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@
import os
import pathlib
import shutil
import platform

import circfirm
import circfirm.backend


def get_mount() -> str:
"""Get the mounted drive."""
mount_location = os.path.join(os.path.curdir, "testmount")
if platform.system() == "Windows": # pragma: no cover
mount_location = "T:\\"
else:
mount_location = os.path.join(os.path.curdir, "testmount")
assert os.path.exists(mount_location)
assert os.path.isdir(mount_location)
return os.path.realpath(mount_location)
Expand Down

0 comments on commit 3671fdb

Please sign in to comment.