Using urllib.quote on the email message

This commit is contained in:
Sergio Durigan Junior 2015-01-21 12:59:55 -05:00
parent e0cd1af1b3
commit 7f253a1d9b

View file

@ -26,6 +26,7 @@ from buildbot.buildslave import BuildSlave
from buildbot.status.results import SUCCESS, WARNINGS, FAILURE, EXCEPTION from buildbot.status.results import SUCCESS, WARNINGS, FAILURE, EXCEPTION
from gdbcommand import GdbCatSumfileCommand from gdbcommand import GdbCatSumfileCommand
from gdbgitdb import SaveGDBResults, get_builder_commit_id from gdbgitdb import SaveGDBResults, get_builder_commit_id
from urllib import quote
from sumfiles import DejaResults, set_web_base from sumfiles import DejaResults, set_web_base
import os.path import os.path
@ -186,7 +187,7 @@ send to the gdb-testers mailing list."""
# fails the test will continue. # fails the test will continue.
text += "*** Failed to make TAGS ***\n" text += "*** Failed to make TAGS ***\n"
text += "Log URL: %s/steps/%s/logs/%s\n\n" % (master_status.getURLForThing (build), text += "Log URL: %s/steps/%s/logs/%s\n\n" % (master_status.getURLForThing (build),
n, log.getName ()) quote (n), quote (log.getName ()))
continue continue
elif n == 'regressions' and log.getName () == 'regressions': elif n == 'regressions' and log.getName () == 'regressions':
text += "*** Regressions found ***\n" text += "*** Regressions found ***\n"