1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

test-network: override networkctl bin w/ valgrind/sanitizers

This commit is contained in:
Frantisek Sumsal 2022-06-11 17:47:52 +02:00
parent bf24eafcd2
commit 004daaf5a1

View File

@ -321,14 +321,19 @@ def setUpModule():
'[Service]',
'Restart=no',
'ExecStart=',
'ExecReload=',
]
if use_valgrind:
drop_in += [
'ExecStart=!!valgrind --track-origins=yes --leak-check=full --show-leak-kinds=all ' + networkd_bin,
f'ExecReload=valgrind {networkctl_bin} reload',
'PrivateTmp=yes'
]
else:
drop_in += ['ExecStart=!!' + networkd_bin]
drop_in += [
'ExecStart=!!' + networkd_bin,
f'ExecReload={networkctl_bin} reload',
]
if enable_debug:
drop_in += ['Environment=SYSTEMD_LOG_LEVEL=debug']
if asan_options: