diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-01 11:11:15 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-03-01 18:28:36 +0000 |
commit | ff059b8b9852054f6669bb8bdeb6945ff0631b70 (patch) | |
tree | 90a0a943f1a0565220032fdc5c7a789de88a51a8 /tests/integration/shell.py | |
parent | 1eba1fed210d9814a06ef2b9a24610132b18235c (diff) | |
download | buildstream-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.py | 2 |
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) |