Skip to content

Commit

Permalink
Do not do D-bus monitoring for one failing test
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Dec 16, 2024
1 parent b87bb3c commit 56c81b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stratis_cli_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
2 changes: 1 addition & 1 deletion stratisd_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
6 changes: 4 additions & 2 deletions testlib/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 56c81b7

Please sign in to comment.