Visitar URL original
Override `core.filemode=false` in wasm build by ianthomas23 · Pull Request #189 · QuantStack/git2cpp · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Harden wasm tests
  • Loading branch information
ianthomas23 committed Oct 7, 2026
commit 507e2f6b75364eeae54be68804c3df52cfb30914
6 changes: 3 additions & 3 deletions test/conftest_wasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ def subprocess_run(
raise RuntimeError(f"Error setting cwd to {cwd}")

def maybe_wrap_arg(s: str | MockPath) -> str:
# An argument containing spaces needs to be wrapped in quotes if it is not already, due
# to how the command is passed to cockle as a single string.
# An argument containing whitespace (including newlines) needs to be wrapped in quotes if
# it is not already, due to how the command is passed to cockle as a single string.
# Could do better here.
s = str(s)
if " " in s and not s.endswith("'"):
if re.search(r"\s", s) and not s.endswith("'"):
return "'" + s + "'"
return s

Expand Down
Loading