diff --git a/stratis_cli_cert.py b/stratis_cli_cert.py index 4040cc0..3c10f70 100644 --- a/stratis_cli_cert.py +++ b/stratis_cli_cert.py @@ -184,7 +184,7 @@ def setUp(self): """ super().setUp() - self._post_test_checks = RunPostTestChecks() + self._post_test_checks = RunPostTestChecks(test_id=self.id()) def tearDown(self): """ diff --git a/stratisd_cert.py b/stratisd_cert.py index 5f8f55d..b9c86f4 100644 --- a/stratisd_cert.py +++ b/stratisd_cert.py @@ -180,7 +180,7 @@ def setUp(self): """ super().setUp() - self._post_test_checks = RunPostTestChecks() + self._post_test_checks = RunPostTestChecks(test_id=self.id()) def tearDown(self): """ diff --git a/testlib/infra.py b/testlib/infra.py index dc1b8bc..8530b1c 100644 --- a/testlib/infra.py +++ b/testlib/infra.py @@ -621,12 +621,14 @@ class RunPostTestChecks: Manage running post test checks """ - def __init__(self): + def __init__(self, *, test_id=None): """ Set up checks that need to be started before test is run. """ self.dbus_monitor = DbusMonitor() - self.dbus_monitor.setUp() + # See: https://github.com/stratis-storage/project/issues/741 + if test_id is None or not test_id.endswith("test_pool_add_data_init_cache"): + self.dbus_monitor.setUp() def teardown(self): """