mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 02:56:17 -10:00
Apply the existing leash writer after the boat's base command tag so live holders and pending links override stale input data. Keep holder policy and boat behavior in their existing implementations. Add an actual Game getter regression and a guarded Java/Game fixture covering owner clicks, repeated reads, pending UUIDs and detached links. Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
"""Boat command-visible live leash data after real owner clicks."""
|
|
import argparse
|
|
from pathlib import Path
|
|
import subprocess
|
|
import sys
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument('--binary', type=Path)
|
|
parser.add_argument('--reference-only', action='store_true')
|
|
parser.add_argument('--prepare', action='store_true')
|
|
parser.add_argument('--work-dir', type=Path)
|
|
args = parser.parse_args()
|
|
root = Path(__file__).resolve().parents[1]
|
|
command = [sys.executable, str(root / 'tools/test_command_exec_parity.py'),
|
|
'--boat-leash-view-fixture', '--work-dir',
|
|
str(args.work_dir.resolve() if args.work_dir else root / '.local/boat-leash-view-parity')]
|
|
if args.binary:
|
|
command += ['--binary', str(args.binary.resolve())]
|
|
for name in ['reference_only', 'prepare']:
|
|
if getattr(args, name):
|
|
command.append('--' + name.replace('_', '-'))
|
|
return subprocess.run(command, cwd=root).returncode
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|