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

Method _start_new_shell_process

tests/shell/util.py:317–325  ·  view source on GitHub ↗

Starts a shell process and returns the process handle

(self, vector, args=None, env=None, stdout_file=None,
                               stderr_file=None)

Source from the content-addressed store, hash-verified

315 return result
316
317 def _start_new_shell_process(self, vector, args=None, env=None, stdout_file=None,
318 stderr_file=None):
319 """Starts a shell process and returns the process handle"""
320 cmd = get_shell_cmd(vector)
321 if args is not None: cmd += args
322 stdout_arg = stdout_file if stdout_file is not None else PIPE
323 stderr_arg = stderr_file if stderr_file is not None else PIPE
324 return Popen(cmd, shell=False, stdout=stdout_arg, stdin=PIPE, stderr=stderr_arg,
325 universal_newlines=True, env=build_shell_env(env))
326
327
328def get_unused_port():

Callers 1

__init__Method · 0.95

Calls 2

get_shell_cmdFunction · 0.85
build_shell_envFunction · 0.85

Tested by

no test coverage detected