-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 157: Fix D-Bus adapter tests in GitHub Actions (#159)
Initiates a private session bus and uses that for the integration tests. Few reasons for this: - In GitHub Actions, Ubuntu 22.04.3 the session bus is there, but the address is not available in DBUS_SESSION_BUS_ADDRESS. That is a bit problematic. - One option could have been to create a private bus and set os.environ['DBUS_SESSION_BUS_ADDRESS'] to that bus, but there might be other strategies python dbus libraries other than jeepney use for getting the session dbus address, so making also the DbusMethodCalls to expect service in the private bus (not the default "SESSION" bus), is a bit more robust. - Another option would have been to try to dig out the session bus address from the running dbus-daemon process in the Ubuntu 22.04.03 instance, and set DBUS_SESSION_BUS_ADDRESS to that, but that would be perhaps a bit more involved task. In addition, not all GitHub Actions instances have the dbus-daemon running as session bus (for example, the Ubuntu 20.04), so we would had to create a new bus anyway with dbus-daemon.
- Loading branch information
Showing
3 changed files
with
115 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters