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

test-runner: set DBUS_SYSTEM_BUS_ADDRESS for --shell

After namespaces were added, the dbus address was customized to
be /tmp/dbus{0..N}. This prevented any dbus applications started
in the shell from working properly.

Set DBUS_SYSTEM_BUS_ADDRESS to the environment prior to entering
the shell.
This commit is contained in:
James Prestwood 2021-09-23 15:57:25 -07:00 committed by Denis Kenzior
parent 31075ab2ef
commit cf0f6ebddf

View File

@ -1416,6 +1416,7 @@ def run_auto_tests(ctx, args):
# a set of tests was passed in just start out in the first. # a set of tests was passed in just start out in the first.
# #
os.chdir(tests[0]) os.chdir(tests[0])
os.environ['DBUS_SYSTEM_BUS_ADDRESS'] = ctx.dbus_address
os.system('/bin/bash') os.system('/bin/bash')
exit() exit()