diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-06-17 14:23:23 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2019-06-26 08:36:20 +0000 |
commit | 16d35b16a33cd21b6f039719a3ff66fbfc3758b4 (patch) | |
tree | 2ecceabd2843f73b00a9feb7e80b3cc2ad0145a0 /tests/artifactcache | |
parent | 1a65a14b235dd5572c2717efa9dc7bd1fdda1fd1 (diff) | |
download | buildstream-16d35b16a33cd21b6f039719a3ff66fbfc3758b4.tar.gz |
tests/artifactcache/junctions.py: Assert the default behaviour
Assert that junction elements are pushed to a parent project's
cache. This is the current default behaviour in BuildStream.
Diffstat (limited to 'tests/artifactcache')
-rw-r--r-- | tests/artifactcache/junctions.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/artifactcache/junctions.py b/tests/artifactcache/junctions.py index cb4698659..2798f032c 100644 --- a/tests/artifactcache/junctions.py +++ b/tests/artifactcache/junctions.py @@ -8,7 +8,7 @@ import pytest from buildstream import _yaml from buildstream.testing import cli # pylint: disable=unused-import -from tests.testutils import create_artifact_share, assert_shared +from tests.testutils import create_artifact_share, assert_shared, assert_not_shared DATA_DIR = os.path.join( @@ -53,7 +53,15 @@ def test_push_pull(cli, tmpdir, datafiles): assert result.exit_code == 0 # And finally assert that the artifacts are in the right shares + # + # In the parent project's cache assert_shared(cli, share, project, 'target.bst', project_name='parent') + assert_shared(cli, share, project, 'app.bst', project_name='parent') + assert_shared(cli, share, base_project, 'base-element.bst', project_name='base') + + # In the junction project's cache + assert_not_shared(cli, base_share, project, 'target.bst', project_name='parent') + assert_not_shared(cli, base_share, project, 'app.bst', project_name='parent') assert_shared(cli, base_share, base_project, 'base-element.bst', project_name='base') # Now we've pushed, delete the user's local artifact cache |