Including xfail in the email

This commit is contained in:
Sergio Durigan Junior 2014-12-23 01:54:48 -05:00
parent f340d4c6f3
commit e350a348bc

View file

@ -121,6 +121,13 @@ send to the gdb-testers mailing list."""
if log.getName () == 'regressions' and log.hasContents (): if log.getName () == 'regressions' and log.hasContents ():
text += log.getText () text += log.getText ()
break break
xfail = os.path.join (gdb_web_base, name, 'xfail')
if os.path.exists (xfail):
text += "\n"
text += "Failures that are being ignored:\n\n"
with open (xfail, 'r') as f:
text += f.read ()
text += "\n"
return { 'body' : text, return { 'body' : text,
'type' : 'plain', 'type' : 'plain',
'subject' : subj } 'subject' : subj }