From 3ae5fef84060b3027c7840445b4d8b4b400e64a5 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 19 Mar 2020 10:56:41 +0000 Subject: [PATCH] TEST: test runfsl with non-fsl command --- tests/test_run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_run.py b/tests/test_run.py index 47d3a6a53..be9e443ca 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -233,6 +233,10 @@ def test_runfsl(): fslplatform.fsldir = fsldir assert run.runfsl('fslhd').strip() == 'fsldir' + # non-FSL command - should error + with pytest.raises(FileNotFoundError): + run.runfsl('ls') + # FSLDEVDIR should take precedence fsldevdir = './fsldev' fslhd = op.join(fsldevdir, 'bin', 'fslhd') -- GitLab