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/integration/shellbuildtrees.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/integration/shellbuildtrees.py')
-rw-r--r-- | tests/integration/shellbuildtrees.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/shellbuildtrees.py b/tests/integration/shellbuildtrees.py index 3d59c78b9..d03344992 100644 --- a/tests/integration/shellbuildtrees.py +++ b/tests/integration/shellbuildtrees.py @@ -225,7 +225,7 @@ def test_buildtree_options(cli, tmpdir, datafiles): result = cli.run(project=project, args=['--cache-buildtrees', 'always', 'build', element_name]) result.assert_success() assert cli.get_element_state(project, element_name) == 'cached' - assert share.has_artifact('test', element_name, cli.get_element_key(project, element_name)) + assert share.has_artifact(cli.get_artifact_name(project, 'test', element_name)) # Discard the cache shutil.rmtree(str(os.path.join(str(tmpdir), 'cache', 'cas'))) |