MCPcopy Create free account
hub / github.com/apache/impala / _call

Function _call

docker/test-with-docker.py:380–392  ·  view source on GitHub ↗

Wrapper for calling a subprocess. args is the first argument of subprocess.Popen, typically an array, e.g., ["echo", "hi"]. If check is set, raise an exception on failure.

(args, check=True)

Source from the content-addressed store, hash-verified

378ALL_SUITES = DEFAULT_SUITES + OTHER_SUITES
379
380def _call(args, check=True):
381 """Wrapper for calling a subprocess.
382
383 args is the first argument of subprocess.Popen, typically
384 an array, e.g., ["echo", "hi"].
385
386 If check is set, raise an exception on failure.
387 """
388 logging.info("Calling: %s", args)
389 if check:
390 subprocess.check_call(args, stdin=None)
391 else:
392 return subprocess.call(args, stdin=None)
393
394
395def _check_output(*args, **kwargs):

Callers 3

_stop_containerMethod · 0.85
_rm_containerMethod · 0.85
runMethod · 0.85

Calls 1

callMethod · 0.65

Tested by

no test coverage detected