We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119dc2b commit 7ef640aCopy full SHA for 7ef640a
unittests/test_schedulers.py
@@ -406,7 +406,9 @@ def test_submit(make_job, exec_ctx):
406
num_tasks_per_node = minimal_job.num_tasks_per_node or 1
407
num_nodes = minimal_job.num_tasks // num_tasks_per_node
408
assert num_nodes == len(minimal_job.nodelist)
409
- assert 0 == minimal_job.exitcode
+
410
+ # Handle the case where the exitcode was not reported by the scheduler
411
+ assert minimal_job.exitcode is None or 0 == minimal_job.exitcode
412
413
with open(minimal_job.stderr) as stderr:
414
assert not stderr.read().strip()
0 commit comments