Skip to content

Commit

Permalink
tests: Skip bluez test_advertise on RHEL 10
Browse files Browse the repository at this point in the history
`bluetoothctl` broke recently: https://issues.redhat.com/browse/RHEL-56021
  • Loading branch information
martinpitt committed Aug 25, 2024
1 parent 949db0d commit 72d2ec7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_bluez5.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
have_bluetoothctl = shutil.which("bluetoothctl")
have_pbap_client = shutil.which("pbap-client")

el10 = "platform:el10" in Path("/etc/os-release").read_text()


def _run_bluetoothctl(command):
"""Run bluetoothctl with the given command.
Expand Down Expand Up @@ -470,6 +472,7 @@ def test_unregister_monitor_unknown(self):
adv_monitor_manager.UnregisterMonitor("/monitor0")
self.assertEqual(ctx.exception.get_dbus_name(), "org.bluez.Error.DoesNotExist")

@unittest.skipIf(el10, "https://issues.redhat.com/browse/RHEL-56021")
def test_advertise(self):
# Given an adapter with the LEAdvertisingManager1 interface
path = self.dbusmock_bluez.AddAdapter("hci0", "my-computer")
Expand Down

0 comments on commit 72d2ec7

Please sign in to comment.