summaryrefslogtreecommitdiff
path: root/tests/integration/shell.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-01 11:11:15 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-03-01 18:28:36 +0000
commitff059b8b9852054f6669bb8bdeb6945ff0631b70 (patch)
tree90a0a943f1a0565220032fdc5c7a789de88a51a8 /tests/integration/shell.py
parent1eba1fed210d9814a06ef2b9a24610132b18235c (diff)
downloadbuildstream-bschubert/more-pythonic-list-concat.tar.gz
Use [a, b, *c] instead of [a, b] + c when building listbschubert/more-pythonic-list-concat
This pattern is available from python3.5 and provides a simpler understanding of what is going on
Diffstat (limited to 'tests/integration/shell.py')
-rw-r--r--tests/integration/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py
index 97c4d0cad..c4fb4e961 100644
--- a/tests/integration/shell.py
+++ b/tests/integration/shell.py
@@ -40,7 +40,7 @@ def execute_shell(cli, project, command, *, config=None, mount=None, element='ba
if mount is not None:
host_path, target_path = mount
args += ['--mount', host_path, target_path]
- args += [element, '--'] + command
+ args += [element, '--', *command]
return cli.run(project=project, project_config=config, args=args)