summaryrefslogtreecommitdiff
path: root/tests/frontend
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-08-15 09:27:02 +0100
committerJames Ennis <james.ennis@codethink.co.uk>2019-08-27 12:12:13 +0100
commitef2015096ac039f541be5401a39cf25477afefca (patch)
treec13530df2af6251023c0b7e828819f2102a7ee90 /tests/frontend
parenta8d68c9d313252454a9f92e00b8758a0d2d674ef (diff)
downloadbuildstream-ef2015096ac039f541be5401a39cf25477afefca.tar.gz
Load artifact refs the same way we load element names
Diffstat (limited to 'tests/frontend')
-rw-r--r--tests/frontend/buildcheckout.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py
index b83fc2f3d..98b179b9e 100644
--- a/tests/frontend/buildcheckout.py
+++ b/tests/frontend/buildcheckout.py
@@ -354,11 +354,11 @@ def test_build_checkout_invalid_ref(datafiles, cli):
assert os.path.isdir(builddir)
assert not os.listdir(builddir)
- checkout_args = ['artifact', 'checkout', '--deps', 'none', '--tar', checkout,
- 'test/checkout-deps/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa']
-
+ non_existent_artifact = 'test/checkout-deps/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ checkout_args = ['artifact', 'checkout', '--deps', 'none', '--tar', checkout, non_existent_artifact]
result = cli.run(project=project, args=checkout_args)
- assert "seems to be invalid. Note that an Element name can also be used." in result.stderr
+
+ assert "{}\nis not present in the artifact cache".format(non_existent_artifact) in result.stderr
@pytest.mark.datafiles(DATA_DIR)