]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/TEST-16-EXTEND-TIMEOUT/test.sh
test: add function to reduce copied setup boilerplate
[thirdparty/systemd.git] / test / TEST-16-EXTEND-TIMEOUT / test.sh
index 368c9e63ca3620db0e85ed56e077e101fdb6c637..c5f8af6ec6124f9b58e93ff2a07c11c09f3aab93 100755 (executable)
@@ -14,6 +14,7 @@ test_setup() {
         eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
 
         setup_basic_environment
+        mask_supporting_services
 
         for s in success-all success-start success-stop success-runtime \
                  fail-start fail-stop fail-runtime
@@ -27,12 +28,6 @@ test_setup() {
 
         setup_testsuite
     )
-    # mask some services that we do not want to run in these tests
-    ln -fs /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
-    ln -fs /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service
-    ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.service
-    ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.socket
-    ln -fs /dev/null $initdir/etc/systemd/system/systemd-resolved.service
 
     setup_nspawn_root
 }