From 90cb84c9052bbe7c23fa6e58a3041f0c05249821 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jan 2016 16:57:15 +0100 Subject: selftest: specify a maximum runtime for 'make testenv' of 1 year Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- selftest/selftest.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'selftest/selftest.pl') diff --git a/selftest/selftest.pl b/selftest/selftest.pl index db5da05091e..08273765279 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -415,7 +415,15 @@ my $testenv_default = "none"; # must terminate in this time, and testenv will only stay alive this # long -my $server_maxtime = 10800; +my $server_maxtime; +if ($opt_testenv) { + # 1 year should be enough :-) + $server_maxtime = 365 * 24 * 60 * 60; +} else { + # make test should run under 3 hours + $server_maxtime = 3 * 60 * 60; +} + if (defined($ENV{SMBD_MAXTIME}) and $ENV{SMBD_MAXTIME} ne "") { $server_maxtime = $ENV{SMBD_MAXTIME}; } -- cgit v1.2.1