summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2020-05-11 22:29:13 +0000
committerChandan Singh <chandan@chandansingh.net>2020-05-11 22:33:51 +0000
commitd0336f77defb3d612dde112af3eccbd54ee0de12 (patch)
tree0439d5e1a3e1bb98faf646663755146def97ab7b /tests
parentb9f0126fb2db172546abe889690e9c39d6e6ef92 (diff)
downloadbuildstream-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.py6
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: