From aa8f8f608cee5d3f7cf0036e91c38df93b03c7d9 Mon Sep 17 00:00:00 2001 From: Rafael Sarmiento Date: Fri, 29 Nov 2019 09:41:03 +0100 Subject: [PATCH 1/3] add nodelist in failure report --- reframe/frontend/statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reframe/frontend/statistics.py b/reframe/frontend/statistics.py index 6be05d9832..dab18cf713 100644 --- a/reframe/frontend/statistics.py +++ b/reframe/frontend/statistics.py @@ -84,7 +84,7 @@ def failure_report(self): report.append(' * System partition: %s' % partname) report.append(' * Environment: %s' % environ_name) report.append(' * Stage directory: %s' % check.stagedir) - + report.append(' * Nodes: %s' % check.job._nodelist) job_type = 'local' if check.is_local() else 'batch job' jobid = check.job.jobid if check.job else -1 report.append(' * Job type: %s (id=%s)' % (job_type, jobid)) From 3175e038d8ef0ad5078a1b12cb367a68fc480d6d Mon Sep 17 00:00:00 2001 From: Rafael Sarmiento Date: Fri, 29 Nov 2019 10:22:48 +0100 Subject: [PATCH 2/3] fix for job none --- reframe/frontend/statistics.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reframe/frontend/statistics.py b/reframe/frontend/statistics.py index dab18cf713..f339973e06 100644 --- a/reframe/frontend/statistics.py +++ b/reframe/frontend/statistics.py @@ -84,7 +84,11 @@ def failure_report(self): report.append(' * System partition: %s' % partname) report.append(' * Environment: %s' % environ_name) report.append(' * Stage directory: %s' % check.stagedir) - report.append(' * Nodes: %s' % check.job._nodelist) + if check.job: + report.append(' * Nodes: %s' % check.job._nodelist) + else: + report.append(' * Nodes: <%s>' % check.job) + job_type = 'local' if check.is_local() else 'batch job' jobid = check.job.jobid if check.job else -1 report.append(' * Job type: %s (id=%s)' % (job_type, jobid)) From 00e4acfb41e205ef0e9f64b477e5756bfd234f4c Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Mon, 2 Dec 2019 22:12:57 +0100 Subject: [PATCH 3/3] Fix node list printout --- reframe/frontend/statistics.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/reframe/frontend/statistics.py b/reframe/frontend/statistics.py index f339973e06..e3e9e8f17f 100644 --- a/reframe/frontend/statistics.py +++ b/reframe/frontend/statistics.py @@ -84,11 +84,9 @@ def failure_report(self): report.append(' * System partition: %s' % partname) report.append(' * Environment: %s' % environ_name) report.append(' * Stage directory: %s' % check.stagedir) - if check.job: - report.append(' * Nodes: %s' % check.job._nodelist) - else: - report.append(' * Nodes: <%s>' % check.job) - + report.append(' * Node list: %s' % + (','.join(check.job.nodelist) + if check.job and check.job.nodelist else '')) job_type = 'local' if check.is_local() else 'batch job' jobid = check.job.jobid if check.job else -1 report.append(' * Job type: %s (id=%s)' % (job_type, jobid))