]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/TEST-09-ISSUE-2691/test.sh
test: add function to reduce copied setup boilerplate
[thirdparty/systemd.git] / test / TEST-09-ISSUE-2691 / test.sh
index 1a8b9006724f028bd6dcee807f3a4a75676acd36..ca3e69d2caa125c5ad08d8d269c5ecf91c0816ee 100755 (executable)
@@ -15,6 +15,7 @@ test_setup() {
         eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
 
         setup_basic_environment
+        mask_supporting_services
 
         # setup the testsuite service
         cat >$initdir/etc/systemd/system/testsuite.service <<'EOF'
@@ -31,13 +32,6 @@ EOF
 
         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
 }
 
 do_test "$@"