MCPcopy Create free account
hub / github.com/nodejs/node / _call_quiet

Function _call_quiet

deps/v8/tools/dev/gm.py:328–338  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

326
327# Quiet mode means: only print in case of error.
328def _call_quiet(cmd):
329 p = subprocess.run(cmd, shell=True, capture_output=True)
330 stderr = p.stderr.decode('utf-8')
331 if stderr:
332 # Siso prints errors to stdout, so report that as well.
333 sys.stderr.write(p.stdout.decode('utf-8'))
334 sys.stderr.write(stderr)
335 # By not including stdout in the returned output, we implicitly skip the
336 # interactive "re-run mksnapshot in GDB" feature, which is just fitting
337 # for quiet mode.
338 return p.returncode, stderr
339
340
341def _call_with_output(cmd):

Callers 1

_call_with_outputFunction · 0.85

Calls 3

decodeMethod · 0.65
runMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected