Commit dadb6f56 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5662 every once in a while, run a stress test for a really long time

(an hour here)


git-svn-id: file:///svn/toku/tokudb@50170 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0a7a9cdf
...@@ -57,7 +57,7 @@ class Killed(Exception): ...@@ -57,7 +57,7 @@ class Killed(Exception):
pass pass
class TestRunnerBase(object): class TestRunnerBase(object):
def __init__(self, scheduler, builddir, installdir, rev, jemalloc, execf, tsize, csize, test_time, savedir): def __init__(self, scheduler, builddir, installdir, rev, jemalloc, execf, tsize, csize, default_test_time, savedir):
self.scheduler = scheduler self.scheduler = scheduler
self.builddir = builddir self.builddir = builddir
self.installdir = installdir self.installdir = installdir
...@@ -65,7 +65,7 @@ class TestRunnerBase(object): ...@@ -65,7 +65,7 @@ class TestRunnerBase(object):
self.execf = execf self.execf = execf
self.tsize = tsize self.tsize = tsize
self.csize = csize self.csize = csize
self.test_time = test_time self.default_test_time = default_test_time
self.savedir = savedir self.savedir = savedir
self.env = os.environ self.env = os.environ
...@@ -115,6 +115,13 @@ class TestRunnerBase(object): ...@@ -115,6 +115,13 @@ class TestRunnerBase(object):
else: else:
return 0 return 0
@property
def test_time(self):
if self.nruns % 16 == 0:
return 3600
else:
return self.default_test_time
@property @property
def envdir(self): def envdir(self):
return os.path.join(self.rundir, 'envdir') return os.path.join(self.rundir, 'envdir')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment