(tmpdir)
| 60 | |
| 61 | @pytest.fixture |
| 62 | def script(tmpdir): |
| 63 | # type: (Any) -> str |
| 64 | |
| 65 | script = os.path.join(str(tmpdir), "exe.sh") |
| 66 | with open(script, "w") as fp: |
| 67 | fp.write( |
| 68 | dedent( |
| 69 | """\ |
| 70 | #!/bin/sh |
| 71 | |
| 72 | exit 42 |
| 73 | """ |
| 74 | ) |
| 75 | ) |
| 76 | chmod_plus_x(script) |
| 77 | return script |
| 78 | |
| 79 | |
| 80 | def assert_job_failure( |
nothing calls this directly
no test coverage detected