Skip to content

Commit 8b3fdab

Browse files
committed
Remove assertion about job_type
If the code is buggy an `UnboundLocalError` will be thrown during the job creation
1 parent 00e9eb1 commit 8b3fdab

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

reframe/core/pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,8 +1665,6 @@ def _create_job(self, job_type, force_local=False, **job_opts):
16651665
script_name = 'rfm_build.sh'
16661666
elif job_type == 'run':
16671667
script_name = 'rfm_job.sh'
1668-
else:
1669-
assert 0, "[internal error] unknown job type"
16701668

16711669
return Job.create(scheduler,
16721670
launcher,

0 commit comments

Comments
 (0)