summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-10 10:12:44 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-10 10:16:25 +0300
commit8be4a57cdb3851f127f1d91c56921d7ad58f36d6 (patch)
treebd63a903246399c58257454a2644ecafdde11d26 /check
parentb2552e839c18a6831e258dc13f90e55643cfaa34 (diff)
downloaddebian-ansible-8be4a57cdb3851f127f1d91c56921d7ad58f36d6.tar.gz
test: make test configurable
Create test.cfg in the source tree for this. Currently, ./check does that with hardcoded values. I may change that later if need be, but this is simple for now.
Diffstat (limited to 'check')
-rwxr-xr-xcheck9
1 files changed, 9 insertions, 0 deletions
diff --git a/check b/check
index 72acaa7..0fdede0 100755
--- a/check
+++ b/check
@@ -38,6 +38,15 @@ cat subplot/*.yaml roles/*/subplot.yaml > "$dir/subplot.yaml"
# Fix private key permissions. git doesn't preserve them.
chmod 0600 ssh/id
+# Create configuration for the test VMs used by the test suite.
+cat > test.cfg <<EOF
+name: debian-ansible-test
+base_image: "$HOME/tmp/debian-10-openstack-amd64.qcow2"
+username: debian
+cpus: 2
+memory: 1024
+EOF
+
$hideok python3 test.py --log test.log "$@"
echo "Everything seems to be in order."