Skip to content

Commit a982342

Browse files
committed
TEST: Set timeouts for PBS and OAR tests
1 parent 62f09e0 commit a982342

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

nipype/pipeline/plugins/tests/test_oar.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ def _list_outputs(self):
2929
return outputs
3030

3131

32-
@pytest.mark.skipif(which('oarsub') is None, reason="OAR not installed")
33-
def test_run_pbsgraph(tmp_path):
32+
@pytest.mark.skipif(which("oarsub") is None, reason="OAR not installed")
33+
@pytest.mark.timeout(60)
34+
def test_run_oargraph(tmp_path):
3435
pipe = pe.Workflow(name="pipe", base_dir=str(tmp_path))
3536
mod1 = pe.Node(interface=OarTestInterface(), name="mod1")
3637
mod2 = pe.MapNode(interface=OarTestInterface(), iterfield=["input1"], name="mod2")

nipype/pipeline/plugins/tests/test_pbs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def _list_outputs(self):
2929
return outputs
3030

3131

32-
@pytest.mark.skipif(which('qsub') is None, reason="PBS not installed")
32+
@pytest.mark.skipif(which("qsub") is None, reason="PBS not installed")
33+
@pytest.mark.timeout(60)
3334
def test_run_pbsgraph(tmp_path):
3435
pipe = pe.Workflow(name="pipe", base_dir=str(tmp_path))
3536
mod1 = pe.Node(interface=PbsTestInterface(), name="mod1")

0 commit comments

Comments
 (0)