]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: don't mask "supporting" services in TEST-01-BASIC
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 30 Apr 2021 19:02:41 +0000 (21:02 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 30 Apr 2021 19:02:41 +0000 (21:02 +0200)
This got lost during one of the code de-duplication attempts.

test/test-functions

index 8bae7a9911e3dd1d4a89466cc7a28c8e6b96ad9d..c6ea580eaae0a3d5c1cea4808251248bdd65008b 100644 (file)
@@ -1551,11 +1551,11 @@ setup_basic_dirs() {
 
 mask_supporting_services() {
     # 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"
+    ln -fsv /dev/null "${initdir:?}/etc/systemd/system/systemd-hwdb-update.service"
+    ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-journal-catalog-update.service"
+    ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-networkd.service"
+    ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-networkd.socket"
+    ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-resolved.service"
 }
 
 inst_libs() {
@@ -2335,7 +2335,13 @@ test_create_image() {
     (
         LOG_LEVEL=5
         setup_basic_environment
-        mask_supporting_services
+
+        # We want to test all services in TEST-01-BASIC, but mask them in
+        # all other tests
+        if [[ "$TESTID" != "01" ]]; then
+            dinfo "Masking supporting services"
+            mask_supporting_services
+        fi
     )
 }