MCPcopy Create free account
hub / github.com/ElementsProject/lightning / job

Function job

tests/fuzz/run.py:11–17  ·  view source on GitHub ↗

Takes a list of str, and runs it as a subprocess.

(command)

Source from the content-addressed store, hash-verified

9
10
11def job(command):
12 """Takes a list of str, and runs it as a subprocess."""
13 command_line = " ".join(command)
14 logging.debug(f"Running '{command_line}'\n")
15 res = subprocess.run(command, check=True, stderr=subprocess.PIPE,
16 universal_newlines=True).stderr
17 logging.debug(f"Command '{command_line} output:\n'{res}'")
18
19
20if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected