mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
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
This commit is contained in:
parent
e750561cfe
commit
04f6bd0b51
1 changed files with 9 additions and 2 deletions
|
@ -57,7 +57,7 @@ class Killed(Exception):
|
|||
pass
|
||||
|
||||
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.builddir = builddir
|
||||
self.installdir = installdir
|
||||
|
@ -65,7 +65,7 @@ class TestRunnerBase(object):
|
|||
self.execf = execf
|
||||
self.tsize = tsize
|
||||
self.csize = csize
|
||||
self.test_time = test_time
|
||||
self.default_test_time = default_test_time
|
||||
self.savedir = savedir
|
||||
|
||||
self.env = os.environ
|
||||
|
@ -115,6 +115,13 @@ class TestRunnerBase(object):
|
|||
else:
|
||||
return 0
|
||||
|
||||
@property
|
||||
def test_time(self):
|
||||
if self.nruns % 16 == 0:
|
||||
return 3600
|
||||
else:
|
||||
return self.default_test_time
|
||||
|
||||
@property
|
||||
def envdir(self):
|
||||
return os.path.join(self.rundir, 'envdir')
|
||||
|
|
Loading…
Add table
Reference in a new issue