From fb82d37f09798690e359fc2ebf74a184b1f12ef2 Mon Sep 17 00:00:00 2001 From: Anton Mitrokhin Date: Mon, 21 Jul 2014 16:18:40 +0400 Subject: [PATCH] add host name printing in stability.log and e-mail body --- alloy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alloy.py b/alloy.py index 5bb189b9..cfd1dc38 100755 --- a/alloy.py +++ b/alloy.py @@ -515,6 +515,7 @@ def validation_run(only, only_targets, reference_branch, number, notify, update, # begin validation run for stabitily common.remove_if_exists(stability.in_file) R = [[[],[]],[[],[]],[[],[]],[[],[]]] + print_debug("\n" + common.get_host_name() + "\n", False, stability_log) print_debug("\n_________________________STABILITY REPORT_________________________\n", False, stability_log) for i in range(0,len(LLVM)): print_version = 2 @@ -652,6 +653,8 @@ def validation_run(only, only_targets, reference_branch, number, notify, update, f_lines = fp.readlines() fp.close() body = "" + body += "Hostname: " + common.get_host_name() + "\n\n" + if not sys.exc_info()[0] == None: body = body + "Last exception: " + str(sys.exc_info()) + '\n' for i in range(0,len(f_lines)):