Skip to content

Commit a7cd42e

Browse files
author
Vasileios Karakasis
committed
Fix unit tests + minor style enhancements
1 parent 1f6c8ec commit a7cd42e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

reframe/core/schedulers/oar.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ def emit_preamble(self, job):
9292

9393
# Emit the rest of the options
9494
options += job.sched_access + job.options + job.cli_options
95-
9695
for opt in options:
9796
if opt.startswith('#'):
9897
preamble.append(opt)
@@ -167,7 +166,6 @@ def poll(self, *jobs):
167166
continue
168167

169168
job._state = state_match.group('state')
170-
171169
if oar_state_completed(job.state):
172170
exitcode_match = re.search(
173171
r'^\s*exit_code = (?P<code>\d+)',
@@ -185,7 +183,6 @@ def poll(self, *jobs):
185183
done = job.cancelled or out_ready
186184
if done:
187185
job._completed = True
188-
189186
elif oar_state_pending(job.state) and job.max_pending_time:
190187
if time.time() - job.submit_time >= job.max_pending_time:
191188
self.cancel(job)

unittests/test_schedulers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _expected_oar_directives(job):
216216
f'#OAR -n "testjob"',
217217
f'#OAR -O {job.stdout}',
218218
f'#OAR -E {job.stderr}',
219-
f'#OAR -l /host={num_nodes}/core={num_tasks_per_node},walltime=0:5:0'
219+
f'#OAR -l /host={num_nodes}/core={num_tasks_per_node},walltime=0:5:0',
220220
f'#OAR --account=spam',
221221
f'#OAR --gres=gpu:4',
222222
f'#DW jobdw capacity=100GB',

0 commit comments

Comments
 (0)