'notify.log' trashing removed

This commit is contained in:
Anton Mitrokhin
2014-08-11 11:11:30 +04:00
parent d0f4ece58a
commit 8a72e23b29

View File

@@ -737,6 +737,11 @@ def Main():
parser.print_help()
exit(0)
if options.notify != "":
# in case 'notify' option is used but build (in '-b' for example) failed we do not want to have trash in our message body
# NOTE! 'notify.log' must also be cleaned up at the beginning of every message sending function, i.e. in 'validation_run()'
common.remove_if_exists(os.environ["ISPC_HOME"] + os.sep + "notify_log.log")
setting_paths(options.llvm_home, options.ispc_home, options.sde_home)
if os.environ.get("LLVM_HOME") == None:
error("you have no LLVM_HOME", 1)