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:
parent
5692dcf9a0
commit
99773ea7e8
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user