#!/usr/bin/env python

import sys

outdir = sys.argv[1]

# Test scripts shouldn't write to cwd,
# but they sometimes do. But we should
# be running in a sandbox dir anyway.
with open('output.txt', 'wt') as f:
    f.write('12345')

with open(f'{outdir}/output.txt', 'wt') as f:
    f.write('54321\n')
