diff --git a/scripts/verify.py b/scripts/verify.py index 7ad25c5d0..700626e52 100644 --- a/scripts/verify.py +++ b/scripts/verify.py @@ -2830,7 +2830,7 @@ def _main(held: contextlib.ExitStack) -> None: parser = argparse.ArgumentParser(allow_abbrev=False, description="Platform-native BIOS verification") parser.add_argument("--platform", "-p", type=platform_arg, help="Platform name") parser.add_argument( - "--all", action="store_true", help="Verify all active platforms" + "--all", action="store_true", help="Verify every registered platform" ) parser.add_argument( "--emulator", "-e", help="Emulator profile name(s), comma-separated" diff --git a/tests/test_tool_messages.py b/tests/test_tool_messages.py index 24483fa36..62d56d5f2 100644 --- a/tests/test_tool_messages.py +++ b/tests/test_tool_messages.py @@ -172,6 +172,22 @@ class TheVerdictClosesARedirectedReport(unittest.TestCase): self.assertEqual(proc.stdout.splitlines(), ["report", "ERROR: verdict"]) +class TheAllHelpNamesWhatItCovers(unittest.TestCase): + """`verify.py --help` kept 'Verify all active platforms' after the + archived status was dropped: --all covers every registered platform, + and a reader looked for an --include-archived that no longer exists.""" + + def test_no_help_text_speaks_of_active_platforms(self): + proc = subprocess.run( + [sys.executable, "scripts/verify.py", "--help"], cwd=REPO_ROOT, + capture_output=True, text=True, timeout=60, check=True, + ) + self.assertIn("Verify every registered platform", proc.stdout) + stale = [path.name for path in sorted((REPO_ROOT / "scripts").rglob("*.py")) + if "active platform" in path.read_text(encoding="utf-8")] + self.assertEqual(stale, []) + + class AMistypedTargetAcrossAllPlatforms(unittest.TestCase): """`verify --all --target swich` ended on "no platform has it" after 17 INFO lines, two of which held the suggestion."""