Created
September 11, 2009 19:11
-
-
Save jmaher/185513 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildSteps = contentAll.split("BuildStep ended") | |
for step in buildSteps: | |
if reParsing.search(step): | |
contentByLine = step.split("\n") | |
for line in contentByLine: | |
if reStatus.search(line) != None: | |
getTestDetail(line) | |
break | |
doc['tests'] = tests | |
doc['timestamp'] = str(datetime.datetime.now()) | |
if (doc['testtype'] == "xpcshell"): | |
for test in doc['tests']: | |
if (doc['tests'][test]['fail'] >= 1): | |
doc['tests'][test] = dict({'pass': 0, 'fail': 1, 'todo': 0, 'note': []}) | |
else: | |
doc['tests'][test] = dict({'pass': 1, 'fail': 0, 'todo': 0, 'note': []}) | |
print "Done parsing " + url | |
return doc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment