diff options
author | Chandan Singh <chandan@chandansingh.net> | 2020-05-11 22:29:13 +0000 |
---|---|---|
committer | Chandan Singh <chandan@chandansingh.net> | 2020-05-11 22:33:51 +0000 |
commit | d0336f77defb3d612dde112af3eccbd54ee0de12 (patch) | |
tree | 0439d5e1a3e1bb98faf646663755146def97ab7b /tests | |
parent | b9f0126fb2db172546abe889690e9c39d6e6ef92 (diff) | |
download | buildstream-d0336f77defb3d612dde112af3eccbd54ee0de12.tar.gz |
tests/integration/manual.py: Fix assertion for CLI invocationchandan/fix-manual-test
The result of `bst artifact checkout` invocation was not correctly
assigned to the result object in a few places. Hence the assertion on
the next line was really testing the same thing as the previous
assertion, i.e. the result of `bst build`.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/manual.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/manual.py b/tests/integration/manual.py index c6a84b062..23fa68e85 100644 --- a/tests/integration/manual.py +++ b/tests/integration/manual.py @@ -52,7 +52,7 @@ def test_manual_element(cli, datafiles): res = cli.run(project=project, args=["build", element_name]) assert res.exit_code == 0 - cli.run(project=project, args=["artifact", "checkout", element_name, "--directory", checkout]) + res = cli.run(project=project, args=["artifact", "checkout", element_name, "--directory", checkout]) assert res.exit_code == 0 with open(os.path.join(checkout, "test")) as f: @@ -83,7 +83,7 @@ def test_manual_element_environment(cli, datafiles): res = cli.run(project=project, args=["build", element_name]) assert res.exit_code == 0 - cli.run(project=project, args=["artifact", "checkout", element_name, "--directory", checkout]) + res = cli.run(project=project, args=["artifact", "checkout", element_name, "--directory", checkout]) assert res.exit_code == 0 with open(os.path.join(checkout, "test")) as f: @@ -111,7 +111,7 @@ def test_manual_element_noparallel(cli, datafiles): res = cli.run(project=project, args=["build", element_name]) assert res.exit_code == 0 - cli.run(project=project, args=["artifact", "checkout", element_name, "--directory", checkout]) + res = cli.run(project=project, args=["artifact", "checkout", element_name, "--directory", checkout]) assert res.exit_code == 0 with open(os.path.join(checkout, "test")) as f: |