tests: define MITOGEN_INVENTORY_FILE even if -i unspecified.
To fix running tests locally.
This commit is contained in:
parent
01faed708d
commit
0dfcf5560b
|
@ -46,6 +46,10 @@ if '-i' in sys.argv:
|
|||
extra['MITOGEN_INVENTORY_FILE'] = (
|
||||
os.path.abspath(sys.argv[1 + sys.argv.index('-i')])
|
||||
)
|
||||
else:
|
||||
extra['MITOGEN_INVENTORY_FILE'] = (
|
||||
os.path.join(GIT_BASEDIR, 'tests/ansible/hosts')
|
||||
)
|
||||
|
||||
args = ['ansible-playbook']
|
||||
args += ['-e', json.dumps(extra)]
|
||||
|
|
Loading…
Reference in New Issue