summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2020-10-09 08:10:28 +0000
committerBenjamin Schubert <1593324-BenjaminSchubert@users.noreply.gitlab.com>2020-10-26 14:22:00 +0000
commit1263d86e06390d49a92666ed31a36a5d6338eea0 (patch)
tree948eacee36f1e85cc8e23bdf04a5d3a2cee275f0
parentf1986c135c8bc8132c15c4b45230e872d13ad60a (diff)
downloadbuildstream-1263d86e06390d49a92666ed31a36a5d6338eea0.tar.gz
workspace.py: Simplify invocation of the cli command
-rw-r--r--src/buildstream/testing/_sourcetests/workspace.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/buildstream/testing/_sourcetests/workspace.py b/src/buildstream/testing/_sourcetests/workspace.py
index a171bf703..64b59d865 100644
--- a/src/buildstream/testing/_sourcetests/workspace.py
+++ b/src/buildstream/testing/_sourcetests/workspace.py
@@ -59,11 +59,7 @@ def test_open(cli, tmpdir, datafiles, kind):
# Now open the workspace, this should have the effect of automatically
# fetching the source from the repo.
- args = ["workspace", "open"]
- args.extend(["--directory", workspace_dir])
-
- args.append(element_name)
- result = cli.run(cwd=workspace_cmd, project=project_path, args=args)
+ result = cli.run(project=project_path, args=["workspace", "open", "--directory", workspace_dir, element_name])
result.assert_success()