From 014524e0b78f964344dbd3fedd4359191c0df070 Mon Sep 17 00:00:00 2001 From: Lukasz Tekieli Date: Thu, 26 Feb 2026 09:31:47 +0100 Subject: [PATCH] docker: use shell for executing target commands --- score/itf/plugins/docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/score/itf/plugins/docker.py b/score/itf/plugins/docker.py index 7053cbc..e0ca715 100644 --- a/score/itf/plugins/docker.py +++ b/score/itf/plugins/docker.py @@ -17,6 +17,7 @@ import tarfile import docker as pypi_docker import pytest +import shlex from score.itf.plugins.core import determine_target_scope from score.itf.plugins.core import Target @@ -51,7 +52,7 @@ def __getattr__(self, name): return getattr(self.container, name) def execute(self, command: str): - return self.container.exec_run(command) + return self.container.exec_run(f"/bin/sh -c {shlex.quote(command)}") def upload(self, local_path: str, remote_path: str) -> None: if not os.path.isfile(local_path):