Skip to content

Commit

Permalink
Print error message on failure
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <amulhern@redhat.com>
  • Loading branch information
mulkieran committed Jul 10, 2024
1 parent 99650ad commit d2eadc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/client-dbus/tests/udev/test_udev.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def _simple_event_test(self, *, key_spec=None): # pylint: disable=too-many-loca

wait_for_udev(udev_wait_type, self._lb_mgr.device_files(tokens_up))

((changed, _), exit_code, _) = Manager.Methods.StartPool(
((changed, _), exit_code, msg) = Manager.Methods.StartPool(
get_object(TOP_OBJECT),
{
"id": pool_uuid,
Expand All @@ -402,7 +402,7 @@ def _simple_event_test(self, *, key_spec=None): # pylint: disable=too-many-loca
self.assertNotEqual(exit_code, StratisdErrors.OK)
self.assertEqual(changed, False)
else:
self.assertEqual(exit_code, StratisdErrors.OK)
self.assertEqual(exit_code, StratisdErrors.OK, msg=msg)
self.assertEqual(changed, True)

wait_for_udev_count(num_devices)
Expand Down

0 comments on commit d2eadc8

Please sign in to comment.