diff options
author | James Ennis <james.ennis@codethink.com> | 2019-01-09 12:36:02 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2019-01-22 12:32:43 +0000 |
commit | fbd159390e97a26f85bb7e8d6284b14bb77083ff (patch) | |
tree | 78eb6130d68ceedca256fc6f71f6c19d645abe64 /tests/artifactcache | |
parent | 9eefe8634a95f181593f4f4b3b18564dd0fa0693 (diff) | |
download | buildstream-fbd159390e97a26f85bb7e8d6284b14bb77083ff.tar.gz |
Mark 'old' checkout command as obsolete
This commit marks 'bst checkout' as a 'hidden' command. If used,
the user will be prompted to use the new 'bst artifact checkout'
command.
All tests which used 'bst checkout' have been modified to use
the new artifact sub-command.
This partially solves #822.
Diffstat (limited to 'tests/artifactcache')
-rw-r--r-- | tests/artifactcache/expiry.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/artifactcache/expiry.py b/tests/artifactcache/expiry.py index d40f432c9..4c47ef75c 100644 --- a/tests/artifactcache/expiry.py +++ b/tests/artifactcache/expiry.py @@ -132,7 +132,7 @@ def test_expiry_order(cli, datafiles, tmpdir): wait_for_cache_granularity() # Now extract dep.bst - res = cli.run(project=project, args=['checkout', 'dep.bst', checkout]) + res = cli.run(project=project, args=['artifact', 'checkout', 'dep.bst', '--directory', checkout]) res.assert_success() # Finally, build something that will cause the cache to overflow @@ -379,7 +379,8 @@ def test_extract_expiry(cli, datafiles, tmpdir): assert cli.get_element_state(project, 'target.bst') == 'cached' # Force creating extract - res = cli.run(project=project, args=['checkout', 'target.bst', os.path.join(str(tmpdir), 'checkout')]) + res = cli.run(project=project, args=['artifact', 'checkout', 'target.bst', + '--directory', os.path.join(str(tmpdir), 'checkout')]) res.assert_success() # Get a snapshot of the extracts in advance |