IMPALA-8373: Test impala-shell with python3

Sets up a python3 virtualenv, installs impala-shell into it, and runs
tests.

Change-Id: I8e123aecd53a7ded44a7da7eb8c8b853cebbfc56
Reviewed-on: http://gerrit.cloudera.org:8080/18588
Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com>
Tested-by: Joe McDonnell <joemcdonnell@cloudera.com>
This commit is contained in:
Michael Smith
2022-06-02 16:02:06 -07:00
committed by Joe McDonnell
parent 5263d13112
commit 181fd94068
7 changed files with 21 additions and 9 deletions

View File

@@ -324,7 +324,7 @@ def get_dev_impala_shell_executable():
def create_impala_shell_executable_dimension():
_, include_pypi = get_dev_impala_shell_executable()
if include_pypi:
return ImpalaTestDimension('impala_shell', 'dev', 'python2')
return ImpalaTestDimension('impala_shell', 'dev', 'python2', 'python3')
else:
return ImpalaTestDimension('impala_shell', 'dev')
@@ -335,5 +335,6 @@ def get_impala_shell_executable(vector):
impala_shell_executable, _ = get_dev_impala_shell_executable()
return {
'dev': impala_shell_executable,
'python2': os.path.join(IMPALA_HOME, 'shell/build/py2_venv/bin/impala-shell')
'python2': os.path.join(IMPALA_HOME, 'shell/build/py2_venv/bin/impala-shell'),
'python3': os.path.join(IMPALA_HOME, 'shell/build/py3_venv/bin/impala-shell')
}[vector.get_value_with_default('impala_shell', 'dev')]