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

Function _run_subprocess

tests/examples/test_examples.py:169–177  ·  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

167
168
169def _run_subprocess(cmd: list[str], cwd: Path) -> subprocess.CompletedProcess:
170 """Run a command in the given directory and return the result."""
171 return subprocess.run(
172 cmd,
173 cwd=cwd,
174 capture_output=True,
175 text=True,
176 timeout=300,
177 )
178
179
180def _mark_example(case: Example) -> list:

Callers 1

test_exampleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected