diff --git a/stratisd_cert.py b/stratisd_cert.py index 28b15a5..426021e 100644 --- a/stratisd_cert.py +++ b/stratisd_cert.py @@ -230,7 +230,7 @@ def tearDown(self): DbusMonitor.run_check(self, stop_time) - FilesystemSymlinkMonitor.tearDown(self) + FilesystemSymlinkMonitor.run_check(self) def _unittest_set_property( self, object_path, param_iface, dbus_param, dbus_value, exception_name diff --git a/testlib/infra.py b/testlib/infra.py index b481d4d..18c6674 100644 --- a/testlib/infra.py +++ b/testlib/infra.py @@ -252,7 +252,11 @@ class FilesystemSymlinkMonitor(unittest.TestCase): _DECODE_DM = "stratis-decode-dm" - def tearDown(self): + def run_check(self): + """ + Check that the filesystem links on the D-Bus and the filesystem links + expected from looking at filesystem devicemapper paths match exactly. + """ managed_objects = StratisDbus.get_managed_objects() filesystems = frozenset(