diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-09-04 16:26:33 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-09-05 07:56:42 +0000 |
commit | 1cd7a829d9da1e2d4a9deb284508c8621608078e (patch) | |
tree | 3e63577616ff0321bf44453d03a79f49861b31b1 /tests | |
parent | 5529b914a2531f56a1bd694f66797341b488ab16 (diff) | |
download | buildstream-1cd7a829d9da1e2d4a9deb284508c8621608078e.tar.gz |
_project.py: Don't only load cached artifacts
Previously, before loading artifact refs (ArtifactElements) we were
checking that they were cached before loading them. This obviously becomes
a problem when we want to try and pull an artifact. This patch removes
the check for cached artifacts as we should still be able to contruct
an ArtifactElement regardless of whether it is cached or not.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/frontend/buildcheckout.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py index 98b179b9e..6281217b7 100644 --- a/tests/frontend/buildcheckout.py +++ b/tests/frontend/buildcheckout.py @@ -358,7 +358,7 @@ def test_build_checkout_invalid_ref(datafiles, cli): checkout_args = ['artifact', 'checkout', '--deps', 'none', '--tar', checkout, non_existent_artifact] result = cli.run(project=project, args=checkout_args) - assert "{}\nis not present in the artifact cache".format(non_existent_artifact) in result.stderr + assert "Artifact reference '{}' seems to be invalid".format(non_existent_artifact) in result.stderr @pytest.mark.datafiles(DATA_DIR) |