Merge remote-tracking branch 'origin/main' into item-481
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -514,7 +514,7 @@ def benched(bench: Bench, planned: Planner) -> list[str] | Failure:
|
||||
def baseline_failure(bench: Bench) -> Failure | None:
|
||||
"""Why a side's tests don't pass without a task; None where they pass at both sides."""
|
||||
for side, tree in bench.trees.items():
|
||||
ran = tests_in_copy(bench.containers, tree, bench.folder)
|
||||
ran = tests_in_copy(bench.containers, tree, bench.folder, bench.git)
|
||||
if isinstance(ran, Failure) or ran.code:
|
||||
return ran if isinstance(ran, Failure) else failed(f"The tests fail at the {side} without {bench.asked.kind.without}: the test command", ran)
|
||||
return None
|
||||
@@ -630,7 +630,7 @@ def planted_tree(bench: Bench, side: Side, tree: pathlib.Path, path: str, change
|
||||
(tree / path).write_bytes(changed)
|
||||
except OSError as failure:
|
||||
return Failure(f"could not plant the bug in {tree}: {failure}")
|
||||
ran = tests_in_copy(bench.containers, str(tree), bench.folder)
|
||||
ran = tests_in_copy(bench.containers, str(tree), bench.folder, bench.git)
|
||||
# Tests that never end under the bug have no message.
|
||||
if isinstance(ran, TimedOut):
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user