MCPcopy
hub / github.com/modelscope/ms-swift / run_command_with_popen

Function run_command_with_popen

tests/run.py:150–154  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

148
149
150def run_command_with_popen(cmd):
151 with subprocess.Popen(
152 cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=1, encoding='utf8') as sub_process:
153 for line in iter(sub_process.stdout.readline, ''):
154 sys.stdout.write(line)
155
156
157def async_run_command_with_popen(cmd, device_id):

Callers 3

run_case_in_envFunction · 0.85
stopTestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected