]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: override networkctl bin w/ valgrind/sanitizers
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 11 Jun 2022 15:47:52 +0000 (17:47 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 11 Jun 2022 15:47:52 +0000 (17:47 +0200)
test/test-network/systemd-networkd-tests.py

index 7a962ba7084ab33e7c21ccaaedd577a21e6b7840..eb99e21dfcac84b9c1d5444d5f11ca7002bbd8dd 100755 (executable)
@@ -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: