mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-06 10:03:49 -06:00
docs: say verify --all covers every platform
The --all help still read 'Verify all active platforms' after the archived status was dropped. --all covers every registered platform.
This commit is contained in:
1 parent
1fe37d16ac
commit
bf10ebaa82
2 files changed
+17
-1
No files matched your search
+1
-1
@@ -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"
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user