Skip to content

Commit 1b76629

Browse files
committed
rename msg variable
1 parent 0fb9eda commit 1b76629

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

reframe/frontend/executors/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,21 +161,21 @@ def duration(self, phase):
161161

162162
def pipeline_timings(self, phases):
163163
def _tf(t):
164-
return f'{t:.3f}' if t else 'n/a'
164+
return f'{t:.3f}s' if t else 'n/a'
165165

166-
mssg = ''
166+
msg = ''
167167
for phase in phases:
168168
if phase == 'compile_complete':
169-
mssg += f"compile: {_tf(self.duration('compile_complete'))}s "
169+
msg += f"compile: {_tf(self.duration('compile_complete'))} "
170170
elif phase == 'run_complete':
171-
mssg += f"run: {_tf(self.duration('run_complete'))}s "
171+
msg += f"run: {_tf(self.duration('run_complete'))} "
172172
else:
173-
mssg += f"{phase}: {_tf(self.duration(phase))}s "
173+
msg += f"{phase}: {_tf(self.duration(phase))} "
174174

175-
if mssg:
176-
mssg = mssg[:-1]
175+
if msg:
176+
msg = msg[:-1]
177177

178-
return mssg
178+
return msg
179179

180180
@property
181181
def testcase(self):

reframe/frontend/executors/policies.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ def on_task_failure(self, task):
9797
timings = task.pipeline_timings(['compile_complete',
9898
'run_complete',
9999
'total'])
100-
mssg = f'{task.check.info()} [{timings}]'
100+
msg = f'{task.check.info()} [{timings}]'
101101
if task.failed_stage == 'cleanup':
102-
self.printer.status('ERROR', mssg, just='right')
102+
self.printer.status('ERROR', msg, just='right')
103103
else:
104-
self.printer.status('FAIL', mssg, just='right')
104+
self.printer.status('FAIL', msg, just='right')
105105

106106
timings = task.pipeline_timings(['setup',
107107
'compile_complete',
@@ -115,8 +115,8 @@ def on_task_success(self, task):
115115
timings = task.pipeline_timings(['compile_complete',
116116
'run_complete',
117117
'total'])
118-
mssg = f'{task.check.info()} [{timings}]'
119-
self.printer.status('OK', mssg, just='right')
118+
msg = f'{task.check.info()} [{timings}]'
119+
self.printer.status('OK', msg, just='right')
120120
timings = task.pipeline_timings(['setup',
121121
'compile_complete',
122122
'run_complete',
@@ -230,12 +230,12 @@ def on_task_failure(self, task):
230230
timings = task.pipeline_timings(['compile_complete',
231231
'run_complete',
232232
'total'])
233-
mssg = f'{task.check.info()} [{timings}]'
233+
msg = f'{task.check.info()} [{timings}]'
234234
if task.failed_stage == 'cleanup':
235-
self.printer.status('ERROR', mssg, just='right')
235+
self.printer.status('ERROR', msg, just='right')
236236
else:
237237
self._remove_from_running(task)
238-
self.printer.status('FAIL', mssg, just='right')
238+
self.printer.status('FAIL', msg, just='right')
239239

240240
timings = task.pipeline_timings(['setup',
241241
'compile_complete',
@@ -249,8 +249,8 @@ def on_task_success(self, task):
249249
timings = task.pipeline_timings(['compile_complete',
250250
'run_complete',
251251
'total'])
252-
mssg = f'{task.check.info()} [{timings}]'
253-
self.printer.status('OK', mssg, just='right')
252+
msg = f'{task.check.info()} [{timings}]'
253+
self.printer.status('OK', msg, just='right')
254254
timings = task.pipeline_timings(['setup',
255255
'compile_complete',
256256
'run_complete',

0 commit comments

Comments
 (0)