mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
refs #5671 closes #5662 pass long join timeout for stress tests, fix num_ptquery/num_update reporting
git-svn-id: file:///svn/toku/tokudb@50169 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
2687f3b7db
commit
e750561cfe
1 changed files with 12 additions and 14 deletions
|
@ -83,6 +83,8 @@ class TestRunnerBase(object):
|
|||
self.env['LD_PRELOAD'] = preload
|
||||
|
||||
self.nruns = 0
|
||||
self.num_ptquery = 1
|
||||
self.num_update = 1
|
||||
self.rundir = None
|
||||
self.outf = None
|
||||
self.times = [0, 0]
|
||||
|
@ -113,20 +115,6 @@ class TestRunnerBase(object):
|
|||
else:
|
||||
return 0
|
||||
|
||||
@property
|
||||
def num_ptquery(self):
|
||||
if self.nruns % 2 < 1:
|
||||
return 1
|
||||
else:
|
||||
return randrange(16)
|
||||
|
||||
@property
|
||||
def num_update(self):
|
||||
if self.nruns % 4 < 2:
|
||||
return 1
|
||||
else:
|
||||
return randrange(16)
|
||||
|
||||
@property
|
||||
def envdir(self):
|
||||
return os.path.join(self.rundir, 'envdir')
|
||||
|
@ -150,6 +138,15 @@ class TestRunnerBase(object):
|
|||
copytree(self.envdir, self.prepareloc)
|
||||
|
||||
def run(self):
|
||||
if self.nruns % 2 < 1:
|
||||
self.num_ptquery = 1
|
||||
else:
|
||||
self.num_ptquery = randrange(16)
|
||||
if self.nruns % 4 < 2:
|
||||
self.num_update = 1
|
||||
else:
|
||||
self.num_update = randrange(16)
|
||||
|
||||
srctests = os.path.join(self.builddir, 'src', 'tests')
|
||||
self.rundir = mkdtemp(dir=srctests)
|
||||
|
||||
|
@ -243,6 +240,7 @@ class TestRunnerBase(object):
|
|||
@property
|
||||
def testargs(self):
|
||||
return ['--num_seconds', str(self.test_time),
|
||||
'--join_timeout', str(60 * 60 * 12),
|
||||
'--no-crash_on_operation_failure',
|
||||
'--num_ptquery_threads', str(self.num_ptquery),
|
||||
'--num_update_threads', str(self.num_update)] + self.prepareargs
|
||||
|
|
Loading…
Add table
Reference in a new issue