[master] 7fd78ac Add a VARNISHTEST_DURATION environment variable to allow setting the test timeout (-t) through a layer of makefiles (aka: make check).

Poul-Henning Kamp phk at FreeBSD.org
Tue Mar 14 20:08:06 CET 2017


commit 7fd78ac491087d453c7613e98b896524be9173f3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 14 19:06:18 2017 +0000

    Add a VARNISHTEST_DURATION environment variable to allow setting
    the test timeout (-t) through a layer of makefiles (aka: make check).

diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index f8057f5..0158a6d 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -580,6 +580,8 @@ main(int argc, char * const *argv)
 
 	params_vsb = VSB_new_auto();
 	AN(params_vsb);
+	if (getenv("VARNISHTEST_DURATION"))
+		vtc_maxdur = atoi(getenv("VARNISHTEST_DURATION"));
 
 	setbuf(stdout, NULL);
 	setbuf(stderr, NULL);



More information about the varnish-commit mailing list