Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerzaehler committed Apr 1, 2024
1 parent 575c43f commit 7820ca5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion test/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ def test_move_and_write_after_tags_changed_xxx(self):
self.assertIsFile(new_path)
mediafile = MediaFile(syspath(new_path))
assert mediafile.title == "a new title"
assert False

def test_prune_after_move(self):
item = self.add_external_track("myexternal")
Expand Down
24 changes: 12 additions & 12 deletions test/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,15 @@ def shutdown(self, wait=True):


def convert_command(tag: str) -> str:
match platform.system():
case "Windows":
return (
'powershell -Command "'
"Copy-Item -Path '$source' -Destination '$dest' -NoNewline;"
f"Add-Content -Path '$dest' -Value {tag}"
'"'
)
case "Linux":
return f"bash -c\" cp '$source' '$dest'; printf {tag} >> '$dest' \""
case system:
raise Exception(f"Unsupported system: {system}")
system = platform.system()
if system == "Windows":
return (
'powershell -Command "'
"Copy-Item -Path '$source' -Destination '$dest' -NoNewline;"
f"Add-Content -Path '$dest' -Value {tag}"
'"'
)
elif system == "Linux":
return f"bash -c\" cp '$source' '$dest'; printf {tag} >> '$dest' \""
else:
raise Exception(f"Unsupported system: {system}")

0 comments on commit 7820ca5

Please sign in to comment.