diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-09-05 12:47:15 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-09-06 12:26:17 +0100 |
commit | 77db59dc6f5c95d54e7b58b8789b7a399a22e1ab (patch) | |
tree | 98b34885984452a07d23008dbf578ec990e2d18f /tests/integration/artifact.py | |
parent | 2de79490ca5d55cac35580f172454f577b758abd (diff) | |
download | buildstream-tlater/cache-endpoints.tar.gz |
Change unfitting function nametlater/cache-endpoints
Diffstat (limited to 'tests/integration/artifact.py')
-rw-r--r-- | tests/integration/artifact.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/artifact.py b/tests/integration/artifact.py index 4180bf6fd..59b7bfaad 100644 --- a/tests/integration/artifact.py +++ b/tests/integration/artifact.py @@ -70,12 +70,12 @@ def test_cache_buildtrees(cli, tmpdir, datafiles): result = cli.run(project=project, args=['build', element_name]) assert result.exit_code == 0 assert cli.get_element_state(project, element_name) == 'cached' - assert share1.has_artifact(cli.get_artifact_name(project, 'test', element_name)) + assert share1.get_artifact(cli.get_artifact_name(project, 'test', element_name)) # The buildtree dir should not exist, as we set the config to not cache buildtrees. artifact_name = cli.get_artifact_name(project, 'test', element_name) - assert share1.has_artifact(artifact_name) + assert share1.get_artifact(artifact_name) with cli.artifact.extract_buildtree(cwd, cwd, artifact_name) as buildtreedir: assert not buildtreedir @@ -111,7 +111,7 @@ def test_cache_buildtrees(cli, tmpdir, datafiles): result = cli.run(project=project, args=['--cache-buildtrees', 'always', 'build', element_name]) assert result.exit_code == 0 assert cli.get_element_state(project, element_name) == 'cached' - assert share2.has_artifact(cli.get_artifact_name(project, 'test', element_name)) + assert share2.get_artifact(cli.get_artifact_name(project, 'test', element_name)) # Cache key will be the same however the digest hash will have changed as expected, so reconstruct paths with cli.artifact.extract_buildtree(cwd, cwd, artifact_name) as buildtreedir: |