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

Function get_dev_impala_shell_executable

tests/shell/util.py:361–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359
360# Returns shell executable, and whether to include pypi variants
361def get_dev_impala_shell_executable():
362 test_prop = ImpalaTestClusterProperties.get_instance()
363 impala_shell_executable = test_prop.pytest_config().getoption('shell_executable')
364
365 if impala_shell_executable is not None:
366 return impala_shell_executable, False
367
368 if test_prop.is_remote_cluster():
369 # With remote cluster testing, we cannot assume that the shell was built locally.
370 return os.path.join(IMPALA_HOME, "bin/impala-shell.sh"), False
371 else:
372 # Test the locally built shell distribution.
373 return os.path.join(IMPALA_HOME, "shell/build",
374 "impala-shell-" + IMPALA_LOCAL_BUILD_VERSION, "impala-shell"), True
375
376
377def create_impala_shell_executable_dimension(dev_only=False):

Calls 4

get_instanceMethod · 0.80
is_remote_clusterMethod · 0.80
pytest_configMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected