selftest: specify a maximum runtime for 'make testenv' of 1 year
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jan 2016 15:57:15 +0000 (16:57 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 1 Feb 2016 08:53:10 +0000 (09:53 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
selftest/selftest.pl

index db5da05091eecb2fbe3870bdef8de0178b918f01..0827376527981d3fe15e33f2cbf554a175486076 100755 (executable)
@@ -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};
 }