MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / _exec

Function _exec

tests/e2e/conftest.py:87–95  ·  view source on GitHub ↗
(container_id: str, cmd: str, workdir: str = CONTAINER_WORKDIR, timeout: int = 600)

Source from the content-addressed store, hash-verified

85@pytest.fixture
86def exec_in_container():
87 def _exec(container_id: str, cmd: str, workdir: str = CONTAINER_WORKDIR, timeout: int = 600):
88 result = subprocess.run(
89 ["docker", "exec", "-w", workdir, container_id, "bash", "-lc", cmd],
90 capture_output=True,
91 text=True,
92 timeout=timeout,
93 check=False,
94 )
95 return result.returncode, result.stdout, result.stderr
96
97 return _exec
98

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected