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

fix screen logging to actually report a failure


git-svn-id: file:///svn/toku/tokudb@42118 c7de825b-a66e-492c-adef-691d508d4ae1
parent f1bf8f1d
......@@ -190,13 +190,9 @@ class TestRunnerBase(object):
else:
return time.ctime(timeval)
def infostr(self, passed):
if passed:
result = 'PASSED'
else:
result = 'FAILED'
return ('[PASS=%d FAIL=%d] PASSED %s tsize=%d csize=%d ptquery=%d update=%d' %
(self.scheduler.passed, self.scheduler.failed,
def infostr(self, result):
return ('[PASS=%d FAIL=%d] %s %s tsize=%d csize=%d ptquery=%d update=%d' %
(self.scheduler.passed, self.scheduler.failed, result,
self.execf, self.tsize, self.csize, self.ptquery, self.update))
def logstr(self, result):
......@@ -206,12 +202,12 @@ class TestRunnerBase(object):
def print_success(self):
self.scheduler.passed += 1
self.logger.info(self.logstr('PASSED'))
info(self.infostr(True))
info(self.infostr('PASSED'))
def print_failure(self):
self.scheduler.failed += 1
self.logger.warning(self.logstr('FAILED'))
warning(self.infostr(False))
warning(self.infostr('FAILED'))
def waitfor(self, proc):
while proc.poll() is None:
......
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