Parity harnesses: loaded_pig_tags and loot_mine_pot_components run on a plain run

Both asserted --reference-only when no --reference-dir was given, so tools/parity.py,
which passes no arguments, failed them before they ran anything.

Fixes #11520

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rdbtandClaude Opus 5.5 committed 2026-11-07 01:15:56 +00:00
1 parent 80947472c1
commit a3c17924ca
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -1,8 +1,9 @@
#!/usr/bin/env python3
"""Actual pig Tags load/save/mutation proof; complete raw list order is diagnostic.
Admit fresh Java with --reference-only --work-dir REF. Reuse exact REF bytes for
both normal binaries with --reference-dir REF --binary GAME --work-dir NEW_OUT.
A plain run (tools/parity.py) runs fresh Java and this checkout's game and compares them.
To compare archived binaries: admit fresh Java with --reference-only --work-dir REF, then
reuse exact REF bytes for each with --reference-dir REF --binary GAME --work-dir NEW_OUT.
No output masks, ordering normalization or synthetic tag observer are applied.
"""
import json
@@ -89,7 +90,6 @@ def main():
sys.argv.append("--allow-gaps")
folder = Path(sys.argv[sys.argv.index("--work-dir") + 1]).resolve()
if reference is None:
assert "--reference-only" in sys.argv, "admit fresh Java, then reuse its frozen reference"
runner.main()
else:
assert "--reference-only" not in sys.argv
@@ -1,8 +1,9 @@
#!/usr/bin/env python3
"""Actual loot-mine pot component boundary; raw snapshots and clocks retained.
Admit fresh Java with --reference-only --work-dir REF; compare each archived
normal Game against --reference-dir REF with a fresh --work-dir OUT.
A plain run (tools/parity.py) runs fresh Java and this checkout's game and compares them.
To compare archived binaries: admit fresh Java with --reference-only --work-dir REF, then
compare each normal Game against --reference-dir REF with a fresh --work-dir OUT.
"""
import json
from pathlib import Path
@@ -92,7 +93,6 @@ def main():
sys.argv.append("--allow-gaps")
folder = Path(sys.argv[sys.argv.index("--work-dir") + 1]).resolve()
if reference is None:
assert "--reference-only" in sys.argv, "admit Java before the native pair"
runner.main()
else:
assert "--reference-only" not in sys.argv