mirror of
https://github.com/razzant/ouroboros.git
synced 2026-10-03 04:07:04 +00:00
Fix quoted shell paths in Windows workspace test
Co-authored-by: Ouroboros <311266734+ouroboros-agent@users.noreply.github.com>
This commit is contained in:
parent
cd35c0298c
commit
f59a8c65ca
1 changed files with 8 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ guards remain independent of the shared operation matrix.
|
|||
from __future__ import annotations
|
||||
|
||||
import pathlib
|
||||
import shlex
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
@ -289,7 +290,13 @@ def test_external_workspace_shell_can_write_configured_deliverable_only_at_top_l
|
|||
|
||||
wrapped_result = _run_shell(
|
||||
ctx,
|
||||
["sh", "-c", f"cp {source} {deliverables / 'wrapped.html'}"],
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"cp "
|
||||
f"{shlex.quote(str(source))} "
|
||||
f"{shlex.quote(str(deliverables / 'wrapped.html'))}",
|
||||
],
|
||||
cwd=str(workspace),
|
||||
)
|
||||
assert "ARTIFACT_OUTPUT_UNDECLARED" in wrapped_result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue