issue #409: add test stubs to the PATH in run_ansible_playbook.py
This commit is contained in:
parent
51658fdd66
commit
c51b67b863
|
@ -6,19 +6,29 @@ import os
|
|||
import sys
|
||||
|
||||
|
||||
GIT_BASEDIR = os.path.dirname(
|
||||
os.path.abspath(
|
||||
os.path.join(__file__, '..', '..')
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
# Used by delegate_to.yml to ensure "sudo -E" preserves environment.
|
||||
os.environ['I_WAS_PRESERVED'] = '1'
|
||||
|
||||
# Used by LRU tests.
|
||||
os.environ['MITOGEN_MAX_INTERPRETERS'] = '3'
|
||||
|
||||
# Add test stubs to path.
|
||||
os.environ['PATH'] = '%s%s%s' % (
|
||||
os.path.join(GIT_BASEDIR, 'tests', 'data', 'stubs'),
|
||||
os.pathsep,
|
||||
os.environ['PATH'],
|
||||
)
|
||||
|
||||
extra = {
|
||||
'is_mitogen': os.environ.get('ANSIBLE_STRATEGY', '').startswith('mitogen'),
|
||||
'git_basedir': os.path.dirname(
|
||||
os.path.abspath(
|
||||
os.path.join(__file__, '..', '..')
|
||||
)
|
||||
)
|
||||
'git_basedir': GIT_BASEDIR,
|
||||
}
|
||||
|
||||
args = ['ansible-playbook']
|
||||
|
|
Loading…
Reference in New Issue