3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

test-runner: start dbus with --start

Starts dbus-daemon as well as sets the right environment variables
so IWD can start (and any other dbus services).
This commit is contained in:
James Prestwood 2022-07-19 11:52:22 -07:00 committed by Denis Kenzior
parent 5692dcf9a0
commit 99773ea7e8

View File

@ -1037,7 +1037,12 @@ atexit.register(exit_vm)
runner.prepare_environment() runner.prepare_environment()
if runner.args.start: if runner.args.start:
os.system(runner.args.start) ctx = TestContext(runner.args)
ctx.start_dbus()
os.chdir(runner.args.testhome)
os.environ['DBUS_SYSTEM_BUS_ADDRESS'] = ctx.dbus_address
subprocess.run([runner.args.start])
else: else:
run_tests(runner.args) run_tests(runner.args)