add hooks/test_apply_dummy_mode
This commit is contained in:
parent
5ff46edd8c
commit
f17117d640
1 changed files with 7 additions and 0 deletions
7
hooks/test_apply_dummy_mode.py
Normal file
7
hooks/test_apply_dummy_mode.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
from os import environ
|
||||||
|
|
||||||
|
from bundlewrap.exceptions import SkipNode
|
||||||
|
|
||||||
|
def node_apply_start(repo, node, interactive=False, **kwargs):
|
||||||
|
if environ.get('BW_VAULT_DUMMY_MODE') or environ.get('BW_PASS_DUMMY_MODE'):
|
||||||
|
raise SkipNode('refusing apply because dummy mode is active')
|
Loading…
Reference in a new issue