DbusSystem#

class pytest_bluezenv.DbusSystem[source]#

Host plugin starting a private system D-Bus for VM-host plugins.

Example

@host_config([DbusSystem(), MyPlugin()])
def test_private_bus(hosts):
    ...

Warning

dbus-python MUST be used only from the GLib main loop, as the library has concurrency bugs. All functions using it MUST either run from GLib main loop eg. via mainloop_wrap

__init__()[source]#

Configure a plugin on the upper tester at collection time.

Methods

presetup(config)

Locate dbus-daemon on the parent host (skip the test if absent).

setup(impl)

Start a private dbus-daemon for this bus (VM side).

teardown()

Stop the private dbus-daemon and clean up (VM side).