def _ParseStatus(statusBlockString):
	status = Status()
	
	statusMatch = _statusBlockRE.match(statusBlockString)
	if statusMatch:
		for keyvalue in _keyValuesSplitterRE.split(statusMatch.group('keyvalues')):
			keyValueMatch = _keyValueRE.match(keyvalue)
			if keyValueMatch:
				status[keyValueMatch.group('key')] = keyValueMatch.group('value').strip()
		status.statusCode = int(statusMatch.group('statuscode'))
	
	return status
Example #2
0
def _ParseStatus(statusBlockString):
    status = Status()

    statusMatch = _statusBlockRE.match(statusBlockString)
    if statusMatch:
        for keyvalue in _keyValuesSplitterRE.split(
                statusMatch.group('keyvalues')):
            keyValueMatch = _keyValueRE.match(keyvalue)
            if keyValueMatch:
                status[keyValueMatch.group('key')] = keyValueMatch.group(
                    'value').strip()
        status.statusCode = int(statusMatch.group('statuscode'))

    return status
Example #3
0
	def _addTestRun(self, className, methodName, result):
		status = Status()
		status['class'] = className
		status['test'] = methodName
		status.statusCode = 1
		self._instrumentation.addStatus(status)
		
		status = Status()
		status['class'] = className
		status['test'] = methodName
		status.statusCode = result
		self._instrumentation.addStatus(status)