Answer review: keep Rust test modules for bugs only, order imports, reword
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-11-26 01:30:46 +01:00
parent 347368040e
commit cecabf324a
6 changed files with 49 additions and 33 deletions
+3 -2
View File
@@ -114,10 +114,11 @@ def tests_in_copy(containers: Containers, tree: str, folder: pathlib.Path) -> Ra
def check_made(tree: str, copy: str, check: str, acceptance: str | None) -> None:
"""Makes at check the tree that checks what was built in copy, a copy of tree: `checked_tree`'s, then a feature's acceptance
tests over it, where acceptance names their folder. A run of Haiku's and a feature's reference patch are checked alike.
tests over it, where acceptance names their folder. A run of Haiku's and a feature's reference patch are checked alike. Only a
task without acceptance tests has its Rust test modules kept as the tree has them: a feature's change may update such a module.
Raises OSError where a file cannot be copied."""
checked_tree(tree, copy, check)
checked_tree(tree, copy, check, rust_tests_planted=not acceptance)
if acceptance:
with_acceptance(check, acceptance)