diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-03-13 20:56:14 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-03-13 20:56:14 +0100 |
commit | ac4eb9de6692735cfcba22dddbf95b2c13477a82 (patch) | |
tree | 71d15be3079b2fd413bca6e488a19b99ae288147 /tests/test_verify.py | |
parent | 87f2cf6e0affab740c1698a592e158dc1e981cff (diff) | |
download | gemato-ac4eb9de6692735cfcba22dddbf95b2c13477a82.tar.gz |
tests: Fix one more cross-fs test to test for mountpoint
Diffstat (limited to 'tests/test_verify.py')
-rw-r--r-- | tests/test_verify.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_verify.py b/tests/test_verify.py index d244c0b..c2fbe7d 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -1,6 +1,6 @@ # gemato: Verification tests # vim:fileencoding=utf-8 -# (c) 2017 Michał Górny +# (c) 2017-2018 Michał Górny # Licensed under the terms of 2-clause BSD license import io @@ -293,6 +293,9 @@ class EmptyFileVerificationTest(unittest.TestCase): expected_dev=st.st_dev) def testCrossFilesystemAssert(self): + if not os.path.ismount('/proc'): + raise unittest.SkipTest('/proc is not a mountpoint') + try: st = os.stat('/proc') except OSError: |