issue #426: make ansible_tests dump inventory.
This commit is contained in:
parent
8f03060e0c
commit
8df895a8ac
|
@ -45,8 +45,8 @@ with ci_lib.Fold('job_setup'):
|
|||
for container in containers
|
||||
)
|
||||
|
||||
# Build the binaries.
|
||||
# run("make -C %s", TESTS_DIR)
|
||||
ci_lib.dump_file(inventory_path)
|
||||
|
||||
if not ci_lib.exists_in_path('sshpass'):
|
||||
run("sudo apt-get update")
|
||||
run("sudo apt-get install -y sshpass")
|
||||
|
|
|
@ -177,6 +177,16 @@ def start_containers(containers):
|
|||
return containers
|
||||
|
||||
|
||||
def dump_file(path):
|
||||
print()
|
||||
print('--- %s ---' % (path,))
|
||||
print()
|
||||
with open(path, 'r') as fp:
|
||||
print(fp.read().rstrip())
|
||||
print('---')
|
||||
print()
|
||||
|
||||
|
||||
# SSH passes these through to the container when run interactively, causing
|
||||
# stdout to get messed up with libc warnings.
|
||||
os.environ.pop('LANG', None)
|
||||
|
|
Loading…
Reference in New Issue