summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-09-05 16:56:23 +0200
committerBastien Nocera <hadess@hadess.net>2022-09-05 17:47:08 +0200
commit3265ce3ca6554559517cd38b9cd5b65eb917704e (patch)
tree7fe5aa0a10da68edb2a61573c0aaf3b215193254
parent778b93a336bef721ddde5f0ab0cb3c1138adbe06 (diff)
downloadupower-3265ce3ca6554559517cd38b9cd5b65eb917704e.tar.gz
linux: Make BT mice use the same address in tests
So we can use, one, the other, or both, and still see a single device.
-rwxr-xr-xsrc/linux/integration-test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/linux/integration-test.py b/src/linux/integration-test.py
index 8cd7142..3aea46e 100755
--- a/src/linux/integration-test.py
+++ b/src/linux/integration-test.py
@@ -1390,7 +1390,7 @@ class Tests(dbusmock.DBusTestCase):
mousebat0 = self.testbed.add_device(
'power_supply',
- 'usb1/bluetooth/hci0/hci0:01/1/power_supply/hid-00:11:22:33:44:55-battery',
+ 'usb1/bluetooth/hci0/hci0:01/1/power_supply/hid-11:22:33:44:aa:bb-battery',
None,
['type', 'Battery',
'scope', 'Device',
@@ -1450,10 +1450,10 @@ class Tests(dbusmock.DBusTestCase):
# on wakeup we'll get a new one which ought to replace the previous;
# emulate that kernel bug
os.unlink(os.path.join(self.testbed.get_sys_dir(), 'class',
- 'power_supply', 'hid-00:11:22:33:44:55-battery'))
+ 'power_supply', 'hid-11:22:33:44:aa:bb-battery'))
mb1 = self.testbed.add_device(
'power_supply',
- 'usb1/bluetooth/hci0/hci0:01/2/power_supply/hid-00:11:22:33:44:55-battery',
+ 'usb1/bluetooth/hci0/hci0:01/2/power_supply/hid-11:22:33:44:aa:bb-battery',
None,
['type', 'Battery',
'scope', 'Device',
@@ -2010,7 +2010,7 @@ class Tests(dbusmock.DBusTestCase):
[], [])
# Add a device to bluez
- address = '11:22:33:44:55:66'
+ address = '11:22:33:44:AA:BB'
path = self.bluez_obj.AddDevice(adapter_name, address, alias)
@@ -2031,7 +2031,7 @@ class Tests(dbusmock.DBusTestCase):
self.start_daemon()
- # process = subprocess.Popen(['gdbus', 'introspect', '--system', '--dest', 'org.bluez', '--object-path', '/org/bluez/hci0/dev_11_22_33_44_55_66'])
+ # process = subprocess.Popen(['gdbus', 'introspect', '--system', '--dest', 'org.bluez', '--object-path', '/org/bluez/hci0/dev_11_22_33_44_AA_BB'])
# Wait for UPower to process the new device
time.sleep(0.5)