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

Function exec_process

tests/util/shell_util.py:40–49  ·  view source on GitHub ↗

Executes a subprocess, waiting for completion. The process exit code, stdout and stderr are returned as a tuple.

(cmd)

Source from the content-addressed store, hash-verified

38
39
40def exec_process(cmd):
41 """Executes a subprocess, waiting for completion. The process exit code, stdout and
42 stderr are returned as a tuple."""
43 LOG.debug('Executing: %s' % (cmd,))
44 # Popen needs a list as its first parameter. The first element is the command,
45 # with the rest being arguments.
46 p = exec_process_async(cmd)
47 stdout, stderr = p.communicate()
48 rc = p.returncode
49 return rc, stdout, stderr
50
51
52def exec_process_async(cmd):

Callers 15

is_path_fully_cachedFunction · 0.90
setup_methodMethod · 0.90
teardown_methodMethod · 0.90
test_load_dataMethod · 0.90

Calls 3

exec_process_asyncFunction · 0.85
communicateMethod · 0.80
debugMethod · 0.45

Tested by 15

is_path_fully_cachedFunction · 0.72
setup_methodMethod · 0.72
teardown_methodMethod · 0.72
test_load_dataMethod · 0.72