docs: say what --skip-packs still runs

The help said "Only regenerate DB and verify" while steps 1b, 4d, 7 and
8 still ran and rewrote derivable.json, README.md and docs/. It now names
the steps it skips and points to --skip-docs.
This commit is contained in:
Abdessamad Derraz committed 2026-10-21 05:27:07 +02:00
1 parent 738577b5a4
commit 309231afc2
3 files changed
+24 -3

No files matched your search

+19
View File
@@ -6026,5 +6026,24 @@ class ToolsRunFromAnyDirectory(unittest.TestCase):
self.assertTrue(Path(tmp, "lists", "retroarch.json").is_file())
class SkipPacksHelpSaysWhatRuns(unittest.TestCase):
"""--help said "Only regenerate DB and verify" while the run went on to
rewrite derivable.json, README.md and docs/."""
def test_the_help_names_the_steps_that_still_run(self):
proc = subprocess.run(
[sys.executable, "scripts/pipeline.py", "--help"],
cwd=ROOT, capture_output=True, text=True, timeout=60, check=True,
)
text = " ".join(proc.stdout.split())
self.assertNotIn("Only regenerate DB and verify", text)
self.assertIn("Steps 7 and 8 still rewrite README.md and docs/", text)
def test_every_step_it_names_is_one_it_skips(self):
source = (ROOT / "scripts" / "pipeline.py").read_text(encoding="utf-8")
skipped = set(re.findall(r"--- (\w+)/8 [^\n]*SKIPPED \(--skip-packs\)", source))
self.assertEqual(skipped, {"4", "4b", "4c", "6"})
if __name__ == "__main__":
unittest.main()