9 lines · python
1"""Script to exit 0 on the first run, and non-0 on subsequent2runs. This demonstrates a flaky interestingness test.3"""4import sys5import pathlib6 7# This will exit 0 the first time the script is run, and fail the second time8pathlib.Path(sys.argv[1]).touch(exist_ok=False)9