summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2016-02-23 15:44:51 -0800
committerNikolaus Rath <Nikolaus@rath.org>2019-02-09 10:09:05 +0000
commitaba104337cb5f6da1433026ced9dba1be3f59803 (patch)
treebc5c4c513801c4abbec947c727a9864c3d1a5a74
parent1e7a043e2d95dcec904f461e02b24f014bf21fb1 (diff)
Skip tests requiring /proc
Origin: debian Forwarded: no Patch-Name: proc_mount.diff Gbp-Pq: Name proc_mount.diff
-rwxr-xr-xtests/t4_adm.py2
1 files changed, 2 insertions, 0 deletions
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()