mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-01 12:02:05 +00:00
change(tests): don't pass pytest args when counting tests
This commit is contained in:
parent
447f9e7c89
commit
9a861cd0ab
1 changed files with 2 additions and 3 deletions
|
|
@ -81,7 +81,7 @@ _DURATIONS_FILE = "test_durations.json"
|
|||
|
||||
|
||||
def _count_tests(
|
||||
files: List[Path], repo_root: Path, pytest_passthrough: List[str]
|
||||
files: List[Path], repo_root: Path
|
||||
) -> dict[Path, int]:
|
||||
"""Run ``pytest --co -q`` once to count individual tests per file.
|
||||
|
||||
|
|
@ -113,7 +113,6 @@ def _count_tests(
|
|||
"--co", "-q",
|
||||
*ignore_args,
|
||||
*[str(f) for f in files],
|
||||
*pytest_passthrough,
|
||||
]
|
||||
try:
|
||||
result = subprocess.run(
|
||||
|
|
@ -697,7 +696,7 @@ def main() -> int:
|
|||
return 1
|
||||
|
||||
# Count individual tests per file via a single pytest --co pass.
|
||||
test_counts = _count_tests(files, repo_root, pytest_passthrough)
|
||||
test_counts = _count_tests(files, repo_root)
|
||||
total_tests = sum(test_counts.values())
|
||||
|
||||
# Apply slicing if requested — distribute files across CI jobs by
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue