Files
mandy/tools/conformance/native/scripts
diego a9447cae88 conformance run.ps1: check the renderer before deleting, and delete only a run's own output
run.ps1 ran `Remove-Item $Output -Recurse -Force` on whatever -Output named, before checking that
conform_native.exe was built: a mistyped -Output (a drive, the repository, a home folder) was
deleted, even when nothing could be rendered into it afterwards.

Now an unbuilt renderer exits 1 before -Output is touched, and an existing -Output is emptied
only when it holds nothing but <scene>.png and manifest.json, which is all a run writes. A file,
a link or junction (a recursive Remove-Item on one can empty its target), a drive root, or a
folder with anything else is refused with exit 2 and left as it was.

tests/test_conformance_run_script.py runs the script from a temporary copy of the tree, with
where.exe standing in for the renderer (Windows only). With main's run.ps1, 6 of its 7 tests
fail, and the junction case empties the junction's target.

Finding: https://github.com/ItsNotRexed/Leonida/issues/9401#issuecomment-7114404825

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:30:31 -03:00
..