1
0
Fork 0

tests/dbus-runner: Avoided nested service launch lists

list = ['one']
list.append('two,three'.split(','))

results in ['one', ['two', 'three']]

while

list += 'two,three'.split(',')

results in ['one', 'two', 'three']

which is what is expected.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3973>
This commit is contained in:
Jonas Ådahl 2024-08-28 15:40:54 +02:00 committed by Marge Bot
parent b2e1f968d9
commit 63b59dfa89

View file

@ -311,7 +311,7 @@ def meta_run(klass, extra_env=None, setup_argparse=None, handle_argparse=None):
launch = os.getenv('MUTTER_DBUS_RUNNER_LAUNCH')
if launch:
args.launch.append(launch.split(','))
args.launch += launch.split(',')
if args.no_isolate_dirs:
return meta_run_klass(klass, args, rest, extra_env)