Skip to content

Commit

Permalink
Update windows testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TekktrikAlt committed Feb 21, 2024
1 parent ed7c416 commit 5fc540e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ test-linux:
test-windows:
mkdir testmount
subst T: testmount
copy tests\assets\info_uf2.txt T:\
copy tests\assets\info_uf2.txt T:
coverage run -m pytest
coverage report
coverage html
subst testmount /d
rmdir testmount /s
subst T: /d
rmdir testmount /s /q
2 changes: 1 addition & 1 deletion circfirm/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _find_device(filename: str) -> Optional[str]:
bootout_file = pathlib.Path(partition.mountpoint) / filename
if bootout_file.exists():
return partition.mountpoint
except PermissionError:
except PermissionError: # pragma: no cover
pass
return None

Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_mount() -> str:
"""Get the mounted drive."""
if platform.system() == "Windows": # pragma: no cover
mount_location = "T:\\"
else:
else: # pragma: no cover
mount_location = os.path.join(os.path.curdir, "testmount")
assert os.path.exists(mount_location)
assert os.path.isdir(mount_location)
Expand Down

0 comments on commit 5fc540e

Please sign in to comment.