MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / run

Function run

tests/windows/test_windows_update_handoff.py:65–77  ·  view source on GitHub ↗
(command, env, timeout=30)

Source from the content-addressed store, hash-verified

63
64
65def run(command, env, timeout=30):
66 try:
67 return subprocess.run(
68 [str(part) for part in command],
69 input=b"",
70 capture_output=True,
71 env=env,
72 timeout=timeout,
73 )
74 except subprocess.TimeoutExpired as exc:
75 raise GuardFailure(
76 "command exceeded %ss: %s" % (timeout, " ".join(map(str, command)))
77 ) from exc
78
79
80def isolated_environment(work):

Calls 1

GuardFailureClass · 0.85

Tested by

no test coverage detected