From 77f185888f9b155a1e4e358b4779df5b0fe1ddd7 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 13 Aug 2026 13:28:06 -0700 Subject: [PATCH] run the whole suite from runtest.sh It invoked pytest on test_wiki_diff_matcher.py alone, so it exercised 19 of the 69 tests despite its name, and it required uv, which contradicts the README's statement that uv is optional. Point it at test/ and use whichever python is on the path. It cds to the repository root first, since several tests open fixture files by paths relative to it, and passes any extra arguments through. Co-Authored-By: Claude Opus 5 (cherry picked from commit 7fff65c23d7c7a2868abccb235ec376fe093d4c1) --- README.md | 3 +-- runtest.sh | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4cd9ab3..0fc01b3 100644 --- a/README.md +++ b/README.md @@ -86,8 +86,7 @@ The most commonly useful options (`wikiq --help` describes them all): - `-RP REGEX -RPl LABEL` searches revision text for a regular expression and reports the matches in a column named by the label; repeat the pair for multiple patterns. `-CP`/`-CPl` do the same for edit - summaries. Adding `-RPc` or `-CPc` reports the number of matches - instead of the matched text. + summaries. - `--resume` continues an interrupted run from the last complete line of an existing JSONL output file. Combined with `--time-limit HOURS`, this supports processing very large dumps in bounded chunks. diff --git a/runtest.sh b/runtest.sh index 3f38038..7b574e3 100755 --- a/runtest.sh +++ b/runtest.sh @@ -1,2 +1,6 @@ #!/usr/bin/env bash -uv run pytest test/test_wiki_diff_matcher.py --capture=tee-sys +# Run the test suite from the repository root, which some tests require +# because they open fixture files by relative path. +set -euo pipefail +cd "$(dirname "$0")" +exec python -m pytest test/ "$@"