Repository navigation
fix(tools): stop reports overwriting the case manifest - #964
Merged
LunaStev merged 1 commit intoOct 19, 2026
Merged
Conversation
Signed-off-by: hiyouwhatsapp <[email protected]>
hiyouwhatsapp
marked this pull request as ready for review
October 19, 2026 12:27
LunaStev
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #949
So the runners already check that a report won't overwrite an input, but
tests/cases/cases.tomlwasn't in that list. You could pass it to--report-jsonand replace the manifest with report JSON, even if the run fails before any tests startI added it to the shared list so all three runners catch it before writing anything
Added tests for the file itself, paths with
..and hard links. Those nine cases fail with the old helper and pass after the change. The symlink cases are there too but I couldn't run them on this Windows setupTesting: Ran
python -m unittest tools.test_runtime_cases tools.test_run_tests tools.test_check_case_sources, 42 passed and two existing symlink tests were skipped. Had to usePYTHONUTF8=1for an existing output test under this machine's locale. Python compilation andgit diff --checkpass too, but I haven't run the full compiler or cross-platform checks locally