]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/TEST-29-UDEV-ID_RENAMING/test.sh
test: add function to reduce copied setup boilerplate
[thirdparty/systemd.git] / test / TEST-29-UDEV-ID_RENAMING / test.sh
index 2a483bbc3ddba457a5eda345c7678174134be85b..7d173c8422ae8f7f9b9db080d24fdf1b2ca19ea9 100755 (executable)
@@ -14,13 +14,7 @@ test_setup() {
         eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
 
         setup_basic_environment
-
-        # 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
+        mask_supporting_services
 
         # setup the testsuite service
         cat >$initdir/etc/systemd/system/testsuite.service <<EOF