Fix quoted shell paths in Windows workspace test

Co-authored-by: Ouroboros <311266734+ouroboros-agent@users.noreply.github.com>
This commit is contained in:
Ouroboros 2026-08-27 08:50:59 +03:00
parent cd35c0298c
commit f59a8c65ca

View file

@ -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