diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-08-15 09:27:02 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-08-27 12:12:13 +0100 |
commit | ef2015096ac039f541be5401a39cf25477afefca (patch) | |
tree | c13530df2af6251023c0b7e828819f2102a7ee90 /tests/frontend | |
parent | a8d68c9d313252454a9f92e00b8758a0d2d674ef (diff) | |
download | buildstream-ef2015096ac039f541be5401a39cf25477afefca.tar.gz |
Load artifact refs the same way we load element names
Diffstat (limited to 'tests/frontend')
-rw-r--r-- | tests/frontend/buildcheckout.py | 8 |
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) |