From 73a0c485cf7480ee528ef49d900b86a236a96631 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 22 Jan 2019 00:24:43 +0000 Subject: [PATCH] tests: CI should symlink all contents of ansible/hosts/ --- .ci/ansible_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/ansible_tests.py b/.ci/ansible_tests.py index 485dff76..98e45ab8 100755 --- a/.ci/ansible_tests.py +++ b/.ci/ansible_tests.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # Run tests/ansible/all.yml under Ansible and Ansible-Mitogen +import glob import os import sys @@ -30,7 +31,9 @@ with ci_lib.Fold('job_setup'): os.chmod('../data/docker/mitogen__has_sudo_pubkey.key', int('0600', 7)) run("mkdir %s", HOSTS_DIR) - run("ln -s %s/hosts/common-hosts %s", TESTS_DIR, HOSTS_DIR) + for path in glob.glob(TESTS_DIR + '/hosts/*'): + if not path.endswith('default.hosts'): + run("ln -s %s %s", path, HOSTS_DIR) inventory_path = os.path.join(HOSTS_DIR, 'target') with open(inventory_path, 'w') as fp: