()
| 359 | |
| 360 | # Returns shell executable, and whether to include pypi variants |
| 361 | def 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 | |
| 377 | def create_impala_shell_executable_dimension(dev_only=False): |
no test coverage detected