summaryrefslogtreecommitdiff
path: root/tests/frontend/push.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-01 19:16:32 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-01 19:44:53 +0900
commit54265b7a9e6f493796bcb9c65682a73013e2a600 (patch)
treed178b17ac2e62497b5217da63d65558da894d2cc /tests/frontend/push.py
parentc1b3a483d17337b45c9118ba2580437a89db2271 (diff)
downloadbuildstream-54265b7a9e6f493796bcb9c65682a73013e2a600.tar.gz
tests/frontend: Updating tests to use new error checks
This also fixes #177 - the problem here was solved simply by passing the project directory to `cli.run(project=project...)`
Diffstat (limited to 'tests/frontend/push.py')
-rw-r--r--tests/frontend/push.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/frontend/push.py b/tests/frontend/push.py
index ced42acf3..9f8bc5b62 100644
--- a/tests/frontend/push.py
+++ b/tests/frontend/push.py
@@ -39,7 +39,7 @@ def test_push(cli, tmpdir, datafiles, override_url, user_url, project_url):
# First build it without the artifact cache configured
result = cli.run(project=project, args=['build', 'target.bst'])
- assert result.exit_code == 0
+ result.assert_success()
# Assert that we are now cached locally
state = cli.get_element_state(project, 'target.bst')
@@ -75,7 +75,7 @@ def test_push(cli, tmpdir, datafiles, override_url, user_url, project_url):
# Now try bst push
result = cli.run(project=project, args=['push', 'target.bst'])
- assert result.exit_code == 0
+ result.assert_success()
# And finally assert that the artifact is in the share
assert_shared(cli, share, project, 'target.bst')
@@ -89,7 +89,7 @@ def test_push_all(cli, tmpdir, datafiles):
# First build it without the artifact cache configured
result = cli.run(project=project, args=['build', 'target.bst'])
- assert result.exit_code == 0
+ result.assert_success()
# Assert that we are now cached locally
state = cli.get_element_state(project, 'target.bst')
@@ -118,7 +118,7 @@ def test_push_all(cli, tmpdir, datafiles):
'push', 'target.bst',
'--deps', 'all'
])
- assert result.exit_code == 0
+ result.assert_success()
# And finally assert that all the artifacts are in the share
assert_shared(cli, share, project, 'target.bst')