pytest_bluezenv.Pexpect#
- class pytest_bluezenv.Pexpect[source]#
Host plugin for starting and controlling processes with pexpect.
Example
btmgmt = host0.pexpect.spawn(find_exe("tools", "btmgmt")) btmgmt.send("info\n") btmgmt.expect("hci0") btmgmt.close()
- __init__()[source]#
Configure plugin (runs on parent host side). This is called at test discovery time, so should mainly store static data.
Methods
__init__()Configure plugin (runs on parent host side).
close(ctl_id)expect(ctl_id, *a, **kw)presetup(config)Parent host-side setup, before VM environment is started.
send(ctl_id, *a, **kw)setup(impl)VM-side setup
spawn(cmd)teardown()VM-side teardown
Attributes
- depends = []
- name = 'pexpect'
- value = None