Commit 0a7a9cdf authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5671 closes #5662 pass long join timeout for stress tests, fix...

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
parent efb59981
......@@ -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
......
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