Bluetoothd#

class pytest_bluezenv.Bluetoothd(debug=True, conf=None, args=())[source]#

Host plugin starting Bluetoothd.

Depends on DbusSystem.

Parameters:
  • debug (bool) – pass -d to bluetoothd to enable debug logging. Default: true.

  • conf (str) – contents of main.conf, written to a per-test config file. Use it to set options such as ControllerMode or Experimental.

  • args (sequence) – extra command-line arguments for bluetoothd. -d is appended when debug is set.

Example

@host_config([Bluetoothd(conf="[General]\nExperimental = true")])
def test_experimental(hosts):
    ...
conf#

contents of main.conf, or None. Can be read back to introspect how the plugin was configured.

Type:

str

__init__(debug=True, conf=None, args=())[source]#

Configure a plugin on the upper tester at collection time.

Methods

presetup(config)

Locate bluetoothd on the parent host (skip the test if absent).

setup(impl)

Start bluetoothd with a per-test config and state dir, and wait for the adapter to come up (VM side).

teardown()

Stop bluetoothd and remove its state directory (VM side).