summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2016-02-23 15:44:51 -0800
committerNikolaus Rath <Nikolaus@rath.org>2016-10-28 14:07:23 -0700
commite7541d5f28330b0c85dc082d818a0f741f5279cb (patch)
treea1c26c0f403c34eb07aa42c7eba617a0190ec71b
parentaf52eed4153df1e91a1cdbad7896c06bf0720ee4 (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 a17267e..36e7f6a 100755
--- a/tests/t4_adm.py
+++ b/tests/t4_adm.py
@@ -19,6 +19,7 @@ import tempfile
import unittest
import subprocess
import pytest
+import os
@pytest.mark.usefixtures('s3ql_cmd_argv', 'pass_reg_output')
class AdmTests(unittest.TestCase):
@@ -49,6 +50,7 @@ class AdmTests(unittest.TestCase):
self.reg_output(r'^WARNING: Maximum object sizes less than '
'1 MiB will degrade performance\.$', count=1)
+ @unittest.skipUnless(os.path.exists('/proc/mounts'), '/proc/mounts not available')
def test_passphrase(self):
self.mkfs()