MCPcopy Create free account
hub / github.com/WAVM/WAVM / run_command

Function run_command

Build/lib/platform.py:433–457  ·  view source on GitHub ↗

Run a command and return the result. Both cmd arguments and cwd can be Path objects - subprocess.run handles them automatically. env, if provided, contains extra environment variables merged on top of os.environ. Timeouts are caught and returned as a CommandResult with timed_out=True.

(
    cmd: Sequence[Union[str, Path]],
    cwd: Optional[Union[str, Path]] = None,
    env: Optional[dict[str,str]] = None,
    timeout: Optional[float] = None,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

runMethod · 0.85
runMethod · 0.85
_run_file_benchmark_onceFunction · 0.85
runMethod · 0.85
runMethod · 0.85
generate_seed_corpusFunction · 0.85
reduce_corpusFunction · 0.85
runMethod · 0.85
runMethod · 0.85
cmd_merge_coverageFunction · 0.85
runMethod · 0.85

Calls 3

from_completedMethod · 0.80
from_timeoutMethod · 0.80
runMethod · 0.45

Tested by 2

runMethod · 0.68
runMethod · 0.68