[master] 11ff7d5 vtc -wait-running should wait for varnish to accept

Nils Goroll nils.goroll at uplex.de
Wed Nov 8 08:06:05 UTC 2017

commit 11ff7d5dfece888661ee68cdf60be42bf8e82be0
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Nov 8 09:02:03 2017 +0100

    vtc -wait-running should wait for varnish to accept
    I wonder if maybe varnishd start should not return before accepting?

diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index b2daae7..afc346c 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -172,6 +172,11 @@ wait_running(const struct varnish *v)
 			    "Child stopped before running: %u %s", st, r);
 		if (!strcmp(r, "Child in state running")) {
+			st = varnish_ask_cli(v, "debug.listen_address", &r);
+			if (st != CLIS_OK)
+				vtc_fatal(v->vl,
+					  "CLI status command failed: %u %s",
+					  st, r);

More information about the varnish-commit mailing list