summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2018-09-24 17:15:41 +0100
committerrichardmaw-codethink <richard.maw@codethink.co.uk>2018-09-27 15:16:57 +0000
commitd2ea306908c90d83e3798e2be42236bb77c0a48b (patch)
treef502acd9109b8135cb9d76bf51b403963f8e139a
parent261f65cafaf1ab06c52a3155a01256b67df92b70 (diff)
downloadbuildstream-richardmaw/push-failed-build-regression.tar.gz
tests: Add regression test for pushing failed buildsrichardmaw/push-failed-build-regression
This test ensures that failed builds are pushed when set to on-error=quit. Closes https://gitlab.com/BuildStream/buildstream/issues/534
-rw-r--r--tests/integration/cachedfail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/cachedfail.py b/tests/integration/cachedfail.py
index f4cabb32c..4d89ca11a 100644
--- a/tests/integration/cachedfail.py
+++ b/tests/integration/cachedfail.py
@@ -121,7 +121,7 @@ def test_build_depend_on_cached_fail(cli, tmpdir, datafiles):
@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux')
@pytest.mark.datafiles(DATA_DIR)
-@pytest.mark.parametrize("on_error", ("continue",))
+@pytest.mark.parametrize("on_error", ("continue", "quit"))
def test_push_cached_fail(cli, tmpdir, datafiles, on_error):
project = os.path.join(datafiles.dirname, datafiles.basename)
element_path = os.path.join(project, 'elements', 'element.bst')