From 8b870b06cc7cc8efd21643072fecee18842cb6e0 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Tue, 30 Mar 2021 23:23:47 +0100
Subject: [PATCH] Add a wait-ready command to the test-driver script

---
 test-driver | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test-driver b/test-driver
index 3d40130e..25e2854d 100755
--- a/test-driver
+++ b/test-driver
@@ -89,6 +89,8 @@ Commands:
   init       Initialize the test environment (turn up VMs, set up
              credentials, run the main float playbook)
 
+  wait-ready Wait until the VMs are ready (part of "init")
+
   cleanup    Cleanup the test environment (turn down VMs, etc)
 
   run        Run the test suite, using the playbooks specified by
@@ -122,6 +124,11 @@ case "$cmd" in
         run_init
         ;;
 
+    wait-ready)
+        wait_for_vms \
+            || die "could not reach the VMs with Ansible"
+        ;;
+
     cleanup)
         save_logs logs
         run_cleanup
-- 
GitLab