Skip to content

Instantly share code, notes, and snippets.

@jmaher
Created September 11, 2009 19:11
Show Gist options
  • Save jmaher/185513 to your computer and use it in GitHub Desktop.
Save jmaher/185513 to your computer and use it in GitHub Desktop.
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