upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authordiego <diego.freitas1995@outlook.com>2026-11-23 18:30:31 -0300
committerdiego <diego.freitas1995@outlook.com>2026-11-23 18:30:31 -0300
commita9447cae881a1b86171106f005ca98e85fe0d967 (patch)
treec1041d900e9636fd8e23fb799ea99c5c4e91da1a /scripts/run_gpu_tests.py
parent5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff)
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>
Diffstat (limited to 'scripts/run_gpu_tests.py')
0 files changed, 0 insertions, 0 deletions