Skip to content

Commit e462a89

Browse files
committed
Set maxDiff to None for some TestCase subclasses
Omit the ones that don't run any tests but are just used for their setUp and tearDown methods. Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 627395c commit e462a89

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

testlib/infra.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ class PoolMetadataMonitor(unittest.TestCase):
238238
Manage verification of consistency of pool-level metadata.
239239
"""
240240

241+
maxDiff = None
242+
241243
def _check_encryption_information_consistency(self, pool_object_path, metadata):
242244
"""
243245
Check whether D-Bus and metadata agree about encryption state of pool.
@@ -302,6 +304,8 @@ class SysfsMonitor(unittest.TestCase):
302304
Manage verification of sysfs files for devices.
303305
"""
304306

307+
maxDiff = None
308+
305309
def run_check(self):
306310
"""
307311
Run the check.
@@ -339,6 +343,8 @@ class SymlinkMonitor(unittest.TestCase):
339343
Manage verification of device symlinks.
340344
"""
341345

346+
maxDiff = None
347+
342348
def run_check(self):
343349
"""
344350
Run the check.
@@ -361,6 +367,8 @@ class FilesystemSymlinkMonitor(unittest.TestCase):
361367
Verify that devicmapper devices for filesystems have corresponding symlinks.
362368
"""
363369

370+
maxDiff = None
371+
364372
def run_check(self, stop_time):
365373
"""
366374
Check that the filesystem links on the D-Bus and the filesystem links
@@ -433,6 +441,8 @@ class DbusMonitor(unittest.TestCase):
433441
Manage starting and stopping the D-Bus monitor script.
434442
"""
435443

444+
maxDiff = None
445+
436446
def setUp(self):
437447
"""
438448
Set up the D-Bus monitor for a test run.

0 commit comments

Comments
 (0)