File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ def setUp(self):
184184 """
185185 super ().setUp ()
186186
187- self ._post_test_checks = RunPostTestChecks ()
187+ self ._post_test_checks = RunPostTestChecks (test_id = self . id () )
188188
189189 def tearDown (self ):
190190 """
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def setUp(self):
180180 """
181181 super ().setUp ()
182182
183- self ._post_test_checks = RunPostTestChecks ()
183+ self ._post_test_checks = RunPostTestChecks (test_id = self . id () )
184184
185185 def tearDown (self ):
186186 """
Original file line number Diff line number Diff line change @@ -621,12 +621,14 @@ class RunPostTestChecks:
621621 Manage running post test checks
622622 """
623623
624- def __init__ (self ):
624+ def __init__ (self , * , test_id = None ):
625625 """
626626 Set up checks that need to be started before test is run.
627627 """
628628 self .dbus_monitor = DbusMonitor ()
629- self .dbus_monitor .setUp ()
629+ # See: https://github.com/stratis-storage/project/issues/741
630+ if test_id is None or not test_id .endswith ("test_pool_add_data_init_cache" ):
631+ self .dbus_monitor .setUp ()
630632
631633 def teardown (self ):
632634 """
You can’t perform that action at this time.
0 commit comments