summaryrefslogtreecommitdiff
path: root/buildstream/sandbox/_sandboxdummy.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/sandbox/_sandboxdummy.py')
-rw-r--r--buildstream/sandbox/_sandboxdummy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/sandbox/_sandboxdummy.py b/buildstream/sandbox/_sandboxdummy.py
index 29ff4bf69..c0a86a0bb 100644
--- a/buildstream/sandbox/_sandboxdummy.py
+++ b/buildstream/sandbox/_sandboxdummy.py
@@ -33,6 +33,10 @@ class SandboxDummy(Sandbox):
cwd = self._get_work_directory(cwd=cwd)
env = self._get_environment(cwd=cwd, env=env)
+ # Convert single-string argument to a list
+ if isinstance(command, str):
+ command = [command]
+
if not self._has_command(command[0], env):
raise SandboxError("Staged artifacts do not provide command "
"'{}'".format(command[0]),