summaryrefslogtreecommitdiff
path: root/tko/parse
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-11-24 19:20:12 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-11-24 19:20:12 +0000
commit563818e9b42feab12c3d32c7b73d9c4db86b0b21 (patch)
treea72552c36ea5105684c10a43e69982f087bd3df6 /tko/parse
parent3545ad284d623f1886916f32ae808928ea77b197 (diff)
Fix formatting of parse
Signed-off-by: Martin Bligh <mbligh@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@959 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/parse')
-rwxr-xr-xtko/parse15
1 files changed, 11 insertions, 4 deletions
diff --git a/tko/parse b/tko/parse
index d2c27b02..b6940995 100755
--- a/tko/parse
+++ b/tko/parse
@@ -47,7 +47,8 @@ if singledir:
jobs_list = [(os.path.basename(dir), dir)]
else:
topdir = os.path.abspath(args[0])
- jobs_list = [(dir, os.path.join(topdir, dir)) for dir in os.listdir(topdir)]
+ dirs = os.listdir(topdir)
+ jobs_list = [(dir, os.path.join(topdir, dir)) for dir in dirs]
debug = True
@@ -62,11 +63,17 @@ def mailfailure(jobname, job, mesgtxt):
link = "http://" + socket.gethostname() + "/results/" + jobname
# This looks pretty good on fixed-width-font email reader.
- message_header = "\n%s\n%s\n\n%-12s %-20s %-12s %-10s %s\n" % ("The following tests FAILED for this job:", link, "Job name", "Kernel", "Test name", "FAIL/WARN", "Failure Reason")
- message_header += "%-12s %-20s %-12s %-10s %s\n" % ("========", "======", "=========", "=========", "==============")
+ message_header = "\n%s\n%s\n\n%-12s %-20s %-12s %-10s %s\n" % \
+ ("The following tests FAILED for this job:",
+ link, "Job name", "Kernel", "Test name",
+ "FAIL/WARN", "Failure Reason")
+ message_header += "%-12s %-20s %-12s %-10s %s\n" % \
+ ("========", "======", "=========",
+ "=========", "==============")
subject = "AUTOTEST: FAILED tests from " + " job " + jobname
- parse.mail(notify_user, job.user, failcc, subject, message_header + mesgtxt)
+ parse.mail(notify_user, job.user, failcc, subject,
+ message_header + mesgtxt)
def do_parse(jobname, path):