Skip to content
Commit 67d8742e authored by Angelos Evripiotis's avatar Angelos Evripiotis
Browse files

tests/.../workspace: assert --assume-yes is needed

Add tests to ensure that these commands will fail if we are not
interactive:

- bst workspace close --remove-dir
- bst workspace reset

They should be invoked with '--assume-yes' if
'prompt.really-workspace-*' options are not configured.

Also make these code paths testable by raising an AppError instead of
sys.exit(-1).

This also tests the 'prompt.really-workspace-*' options, they were not
testable before the '--assume-yes' breaking change to non-interactive
behaviour.

Note that interactive behaviour is still not covered and must be tested
manually.
parent e4e6b816
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment