diff options
author | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-05-08 17:32:00 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-05-15 10:18:26 +0000 |
commit | 7c1bb299c891b7fe8b92e1d54a38eca0b55840ef (patch) | |
tree | aca810443b33de0172be97405dcfbdd0fd501a0d /tests/artifactcache/push.py | |
parent | 108e30a44aded323c9b11ddf623bdcc6802d8193 (diff) | |
download | buildstream-7c1bb299c891b7fe8b92e1d54a38eca0b55840ef.tar.gz |
element.py: Name normalisation & artifact path constructer helpers
By extracting the functionality from the Element() it allows
the removal of code duplication for artifact assertion in
ArtifactShare(), via a new get_artifact_name() method in Cli().
Diffstat (limited to 'tests/artifactcache/push.py')
-rw-r--r-- | tests/artifactcache/push.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py index 4c1d2cd79..a099ad136 100644 --- a/tests/artifactcache/push.py +++ b/tests/artifactcache/push.py @@ -99,7 +99,7 @@ def test_push(cli, tmpdir, datafiles): raise assert not error - assert share.has_artifact('test', 'target.bst', element_key) + assert share.has_artifact(cli.get_artifact_name(project_dir, 'test', 'target.bst', cache_key=element_key)) def _test_push(user_config_file, project_dir, element_name, element_key, queue): |