|
11 | 11 |
|
12 | 12 | need_bosh_docker = pytest.mark.skipif( |
13 | 13 | shutil.which("docker") is None |
14 | | - or sp.call(["docker", "info"] or sp.call(["bosh", "version"])), |
| 14 | + or sp.call(["docker", "info"]) |
| 15 | + or sp.call(["which", "bosh"]), |
15 | 16 | reason="requires docker and bosh", |
16 | 17 | ) |
17 | 18 |
|
18 | | -if bool(shutil.which("sbatch")): |
19 | | - Plugins = ["cf", "slurm"] |
20 | | -else: |
21 | | - Plugins = ["cf"] |
22 | | - |
23 | 19 | Infile = Path(__file__).resolve().parent / "data_tests" / "test.nii.gz" |
24 | 20 |
|
25 | 21 |
|
26 | 22 | @no_win |
27 | 23 | @need_bosh_docker |
28 | | -@pytest.mark.flaky(reruns=2) |
| 24 | +@pytest.mark.flaky(reruns=2) # need for travis |
29 | 25 | @pytest.mark.parametrize( |
30 | 26 | "maskfile", ["test_brain.nii.gz", "test_brain", "test_brain.nii"] |
31 | 27 | ) |
32 | 28 | @pytest.mark.parametrize("results_function", [result_no_submitter, result_submitter]) |
33 | | -@pytest.mark.parametrize("plugin", Plugins) |
34 | 29 | def test_boutiques_1(maskfile, plugin, results_function): |
35 | 30 | """ simple task to run fsl.bet using BoshTask""" |
36 | 31 | btask = BoshTask(name="NA", zenodo_id="1482743") |
@@ -99,7 +94,6 @@ def test_boutiques_spec_2(): |
99 | 94 | @pytest.mark.parametrize( |
100 | 95 | "maskfile", ["test_brain.nii.gz", "test_brain", "test_brain.nii"] |
101 | 96 | ) |
102 | | -@pytest.mark.parametrize("plugin", Plugins) |
103 | 97 | def test_boutiques_wf_1(maskfile, plugin): |
104 | 98 | """ wf with one task that runs fsl.bet using BoshTask""" |
105 | 99 | wf = Workflow(name="wf", input_spec=["maskfile", "infile"]) |
@@ -130,7 +124,6 @@ def test_boutiques_wf_1(maskfile, plugin): |
130 | 124 | @pytest.mark.parametrize( |
131 | 125 | "maskfile", ["test_brain.nii.gz", "test_brain", "test_brain.nii"] |
132 | 126 | ) |
133 | | -@pytest.mark.parametrize("plugin", Plugins) |
134 | 127 | def test_boutiques_wf_2(maskfile, plugin): |
135 | 128 | """ wf with two BoshTasks (fsl.bet and fsl.stats) and one ShellTask""" |
136 | 129 | wf = Workflow(name="wf", input_spec=["maskfile", "infile"]) |
|
0 commit comments