MCPcopy
hub / github.com/pex-tool/pex / script

Function script

tests/pip/test_log_analyzer.py:62–77  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

60
61@pytest.fixture
62def 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
80def assert_job_failure(

Callers

nothing calls this directly

Calls 3

chmod_plus_xFunction · 0.90
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected