Loading lib/galaxy/util/__init__.py +3 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,9 @@ try: shlex_join = shlex.join # type: ignore[attr-defined] except AttributeError: # Python < 3.8 shlex_join = lambda split_command: " ".join(map(shlex.quote, split_command)) # noqa: E731 def shlex_join(split_command): return " ".join(map(shlex.quote, split_command)) inflector = Inflector() Loading test/integration/test_kubernetes_runner.py +1 −1 Original line number Diff line number Diff line Loading @@ -335,7 +335,7 @@ class BaseKubernetesIntegrationTestCase(BaseJobEnvironmentIntegrationTestCase, M if allow_wait and "is waiting to start" in p.stderr: return None raise Exception( f"Command '{shlex_join}' failed with exit code: {p.returncode}.\nstdout: {p.stdout}\nstderr: {p.stderr}" f"Command '{shlex_join(log_cmd)}' failed with exit code: {p.returncode}.\nstdout: {p.stdout}\nstderr: {p.stderr}" ) return p.stdout Loading Loading
lib/galaxy/util/__init__.py +3 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,9 @@ try: shlex_join = shlex.join # type: ignore[attr-defined] except AttributeError: # Python < 3.8 shlex_join = lambda split_command: " ".join(map(shlex.quote, split_command)) # noqa: E731 def shlex_join(split_command): return " ".join(map(shlex.quote, split_command)) inflector = Inflector() Loading
test/integration/test_kubernetes_runner.py +1 −1 Original line number Diff line number Diff line Loading @@ -335,7 +335,7 @@ class BaseKubernetesIntegrationTestCase(BaseJobEnvironmentIntegrationTestCase, M if allow_wait and "is waiting to start" in p.stderr: return None raise Exception( f"Command '{shlex_join}' failed with exit code: {p.returncode}.\nstdout: {p.stdout}\nstderr: {p.stderr}" f"Command '{shlex_join(log_cmd)}' failed with exit code: {p.returncode}.\nstdout: {p.stdout}\nstderr: {p.stderr}" ) return p.stdout Loading