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 <[email protected]>
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()
 

Reply via email to