From 1bbb68d949d47b800c2baa4df0b89ab65242430f Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Wed, 28 Feb 2018 10:05:35 +0000
Subject: [PATCH] Pytest marker for those imcp/immv tests that need to be run
 as non-root.

---
 tests/test_immv_imcp.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/test_immv_imcp.py b/tests/test_immv_imcp.py
index 34930a301..92a30353c 100644
--- a/tests/test_immv_imcp.py
+++ b/tests/test_immv_imcp.py
@@ -16,6 +16,8 @@ import               os
 import               shutil
 import               tempfile
 
+import               pytest
+
 import nibabel as nib
 
 import fsl.utils.imcp   as imcp
@@ -389,6 +391,7 @@ def test_imcp_script_shouldPass(move=False):
         shutil.rmtree(outdir)
 
 
+@pytest.mark.noroottest
 def test_imcp_script_shouldFail(move=False):
 
     # - len(srcs) > 1 and dest is not dir
@@ -508,6 +511,7 @@ def test_immv_script_shouldPass():
     test_imcp_script_shouldPass(move=True)
 
 
+@pytest.mark.noroottest
 def test_immv_script_shouldFail():
     test_imcp_script_shouldFail(move=True)
 
-- 
GitLab