Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion score/itf/plugins/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down