cosmetics

This commit is contained in:
Bernardo Damele 2013-01-21 20:05:25 +00:00
parent e9dea8d394
commit f3cead1729

View File

@ -71,7 +71,7 @@ def main():
stdout, stderr = proc.communicate() stdout, stderr = proc.communicate()
if stderr: if stderr:
msg = prepare_email("Execution of regression test failed with error: %s" % stderr) msg = prepare_email("Execution of regression test failed with error:\n\n%s" % stderr)
send_email(msg) send_email(msg)
sys.exit(1) sys.exit(1)
@ -112,13 +112,15 @@ def main():
if parse: if parse:
content += " at parsing: %s:\n\n" % parse content += " at parsing: %s:\n\n" % parse
content += "### Log file:\n\n" content += "### Log file:\n\n"
content += "%s\n" % log content += "%s\n\n" % log
elif not detected: elif not detected:
content += " - SQL injection not detected\n\n" content += " - SQL injection not detected\n\n"
else:
content += "\n\n"
if traceback: if traceback:
content += "\n\n### Traceback:\n\n" content += "### Traceback:\n\n"
content += "%s\n" % str(traceback) content += "%s\n\n" % str(traceback)
content += "#######################################################################\n\n" content += "#######################################################################\n\n"
@ -137,4 +139,3 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
main() main()