1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Nikolaus Rath <Nikolaus@rath.org>
Date: Tue, 23 Feb 2016 15:44:51 -0800
Subject: Skip tests requiring /proc
Origin: debian
Forwarded: no
Patch-Name: proc_mount.diff
---
tests/t4_adm.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/t4_adm.py b/tests/t4_adm.py
index a38e0fa..4a3f509 100755
--- a/tests/t4_adm.py
+++ b/tests/t4_adm.py
@@ -22,6 +22,7 @@ import tempfile
import unittest
import subprocess
import pytest
+import os
@pytest.mark.usefixtures('pass_s3ql_cmd_argv', 'pass_reg_output')
class AdmTests(unittest.TestCase):
@@ -56,6 +57,7 @@ class AdmTests(unittest.TestCase):
return stdout
+ @unittest.skipUnless(os.path.exists('/proc/mounts'), '/proc/mounts not available')
def test_passphrase(self):
self.mkfs()
|