Skip to content

Commit c06208c

Browse files
redsun82Copilot
andcommitted
Just: say which arguments a language test run visits
Only the first argument finds a justfile; the rest are handed to that one `test` recipe. The docstring said the first "must be a test root", which reads as though the others are roots that get visited in turn, and it has now been read that way by someone porting a suite onto it. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 5149728 commit c06208c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎misc/just/language_tests.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
Called from just recipes as:
55
python3 language_tests.py ROOT [ARG...]
66
7-
Arguments are already split by `just` (see `set lists`). The first one must be a test
8-
root, which is used to locate the justfile implementing `test` for that suite.
7+
Arguments are already split by `just` (see `set lists`). Only the first locates a
8+
justfile: its `test` recipe is run once, and every argument after it is handed to that
9+
one recipe rather than visited in turn. Roots wanting different `test` recipes therefore
10+
cannot be run together.
911
"""
1012

1113
import os

0 commit comments

Comments
 (0)