]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/TEST-22-TMPFILES/test.sh
test: add function to reduce copied setup boilerplate
[thirdparty/systemd.git] / test / TEST-22-TMPFILES / test.sh
index 5b8abbfff5e22ba85974ef2a1a525ed3b39b0fb7..32c3abdeab335f83804c662bf4e51d5e1586638c 100755 (executable)
@@ -1,6 +1,4 @@
 #!/bin/bash
-# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
-# ex: ts=8 sw=4 sts=4 et filetype=sh
 set -e
 TEST_DESCRIPTION="Tmpfiles related tests"
 TEST_NO_QEMU=1
@@ -10,18 +8,13 @@ TEST_NO_QEMU=1
 test_setup() {
     # create the basic filesystem layout
     setup_basic_environment
+    mask_supporting_services
     inst_binary mv
     inst_binary stat
     inst_binary seq
     inst_binary xargs
-
-    # 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 -fs /dev/null $initdir/etc/systemd/system/systemd-machined.service
+    inst_binary mkfifo
+    inst_binary readlink
 
     # setup the testsuite service
     cp testsuite.service $initdir/etc/systemd/system/