MCPcopy Create free account
hub / github.com/NVIDIA/SOL-ExecBench / _run_subprocess

Function _run_subprocess

tests/sol_execbench/test_e2e.py:157–165  ·  view source on GitHub ↗

Run a command in the given directory and return the result.

(cmd: list[str], cwd: Path)

Source from the content-addressed store, hash-verified

155
156
157def _run_subprocess(cmd: list[str], cwd: Path) -> subprocess.CompletedProcess:
158 """Run a command in the given directory and return the result."""
159 return subprocess.run(
160 cmd,
161 cwd=cwd,
162 capture_output=True,
163 text=True,
164 timeout=300,
165 )
166
167
168def _mark_case(case: Sample) -> list:

Callers 2

test_e2eFunction · 0.70
test_reward_hack_e2eFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected