summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-01-22 16:57:15 +0100
committerVolker Lendecke <vl@samba.org>2016-02-01 09:53:10 +0100
commit90cb84c9052bbe7c23fa6e58a3041f0c05249821 (patch)
treea2d4feb45584a3ea5b641fba3f8ab233c25aae81 /selftest/selftest.pl
parent0b4d3db42d472788c30054d41acc1ad0dc8aefee (diff)
downloadsamba-90cb84c9052bbe7c23fa6e58a3041f0c05249821.tar.gz
selftest: specify a maximum runtime for 'make testenv' of 1 year
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-xselftest/selftest.pl10
1 files changed, 9 insertions, 1 deletions
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};
}