summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-02-20 08:00:16 +0000
committerJürg Billeter <j@bitron.ch>2019-02-20 08:00:16 +0000
commitcf01c3bf36994eb1577d079ca853cd59699bfa99 (patch)
treee4109b8e045cbf6a616e20717774cf4ba94aa4de
parent803268fe90076e3c09e9da50217af0b6b743d214 (diff)
parent670ac47962a2696851d9d628d9827500d7c5f2c7 (diff)
downloadbuildstream-cf01c3bf36994eb1577d079ca853cd59699bfa99.tar.gz
Merge branch 'juerg/cachedfail' into 'master'
tests/integration/cachedfail.py: Fix test_push_cached_fail See merge request BuildStream/buildstream!1167
-rw-r--r--tests/integration/cachedfail.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/integration/cachedfail.py b/tests/integration/cachedfail.py
index 5335ff5ed..ad91ea978 100644
--- a/tests/integration/cachedfail.py
+++ b/tests/integration/cachedfail.py
@@ -127,10 +127,11 @@ def test_build_depend_on_cached_fail(cli, tmpdir, datafiles):
@pytest.mark.datafiles(DATA_DIR)
@pytest.mark.parametrize("on_error", ("continue", "quit"))
def test_push_cached_fail(cli, tmpdir, datafiles, on_error):
+ if on_error == 'quit':
+ pytest.xfail('https://gitlab.com/BuildStream/buildstream/issues/534')
+
project = os.path.join(datafiles.dirname, datafiles.basename)
element_path = os.path.join(project, 'elements', 'element.bst')
- workspace = os.path.join(cli.directory, 'workspace')
- checkout = os.path.join(cli.directory, 'checkout')
# Write out our test target
element = {
@@ -144,6 +145,8 @@ def test_push_cached_fail(cli, tmpdir, datafiles, on_error):
'config': {
'commands': [
'false',
+ # Ensure unique cache key for different test variants
+ 'TEST="{}"'.format(os.environ.get('PYTEST_CURRENT_TEST')),
],
},
}