diff options
author | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-02-08 10:44:29 +0000 |
---|---|---|
committer | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-02-13 13:37:32 +0000 |
commit | 118644b22b01a7849a9f8e8e9637e817ed8c443d (patch) | |
tree | 30628eedcf5b43d109f2779b8863b3b991415bd7 /tests/frontend | |
parent | ae0ee361350b13a6c0f2fb24d3a24579305a021b (diff) | |
download | buildstream-118644b22b01a7849a9f8e8e9637e817ed8c443d.tar.gz |
Add cli main & user conf option for 'cache-buildtrees' context
_context.py: Add cache_buildtrees global user context, the default
of which is set to by default to 'always' via the addition of
cache-buildtrees to userconfig.yaml cache group. 'failure' & 'never'
can be given as valid options.
app.py & cli.py: Add --cache-buildtrees as a bst main option, which
when passed with a valid option can override the default or user
defined context for cache_buildtrees.
tests/completions/completions.py: Update for the added flag.
Diffstat (limited to 'tests/frontend')
-rw-r--r-- | tests/frontend/completions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/frontend/completions.py b/tests/frontend/completions.py index cb151c284..c374df2a0 100644 --- a/tests/frontend/completions.py +++ b/tests/frontend/completions.py @@ -23,6 +23,7 @@ MAIN_OPTIONS = [ "--builders ", "-c ", "-C ", + "--cache-buildtrees ", "--colors ", "--config ", "--debug ", @@ -156,6 +157,7 @@ def test_options(cli, cmd, word_idx, expected): @pytest.mark.parametrize("cmd,word_idx,expected", [ ('bst --on-error ', 2, ['continue ', 'quit ', 'terminate ']), + ('bst --cache-buildtrees ', 2, ['always ', 'failure ', 'never ']), ('bst show --deps ', 3, ['all ', 'build ', 'none ', 'plan ', 'run ']), ('bst show --deps=', 2, ['all ', 'build ', 'none ', 'plan ', 'run ']), ('bst show --deps b', 3, ['build ']), |