You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 07:25:44 UTC

[buildstream] 04/15: workspace.py: Simplify invocation of the cli command

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch bschubert/standardize-source-tests
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit a5e6540c23c6004cd6ef8031120afa5b15c480e2
Author: Benjamin Schubert <co...@benschubert.me>
AuthorDate: Fri Oct 9 08:10:28 2020 +0000

    workspace.py: Simplify invocation of the cli command
---
 src/buildstream/testing/_sourcetests/workspace.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/buildstream/testing/_sourcetests/workspace.py b/src/buildstream/testing/_sourcetests/workspace.py
index f99f91a..40dcb6a 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()