on master help sign in
Run the Clay fixtures self-test's fake ship with this Python
537afdaClaude
tools/testdata/clay-fixtures-selftest+3−1
@@ -61,7 +61,9 @@ def exercise(scenario):
61 shutil.copy2(ROOT / 'tools/clay-fixtures', root / 'tools/clay-fixtures')
61 shutil.copy2(ROOT / 'tools/clay-fixtures', root / 'tools/clay-fixtures')
62 shutil.copy2(ROOT / 'tools/golden_case.py', root / 'tools/golden_case.py')
62 shutil.copy2(ROOT / 'tools/golden_case.py', root / 'tools/golden_case.py')
63 fake = root / 'tools/ship'
63 fake = root / 'tools/ship'
64+ # This Python, not /usr/bin/env's: a Nix build has no /usr/bin/env.
64− fake.write_text(FAKE_SHIP)
65+ fake.write_text(FAKE_SHIP.replace('/usr/bin/env python3',
66+ sys.executable, 1))
65 fake.chmod(0o755)
67 fake.chmod(0o755)
66 for name in ('vendor', 'jibb-dev', 'tests'):
68 for name in ('vendor', 'jibb-dev', 'tests'):
67 (root / name).symlink_to(ROOT / name, target_is_directory=True)
69 (root / name).symlink_to(ROOT / name, target_is_directory=True)