teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0671-test-01-basic-mask-some-services-that-currently-don-.patch

c62b8e
From 5daaf2b0fd5086aa281f44c665513a7de8f403e1 Mon Sep 17 00:00:00 2001
c62b8e
From: Daniel Mack <daniel@zonque.org>
c62b8e
Date: Thu, 19 Nov 2015 13:27:39 +0100
c62b8e
Subject: [PATCH] test: 01-basic: mask some services that currently don't run
c62b8e
 in qemu
c62b8e
c62b8e
Cherry-picked from: 6f9d3b08cf3e50d3903282d2ce36244bb86c7b7c
c62b8e
---
c62b8e
 test/TEST-01-BASIC/test.sh | 7 +++++++
c62b8e
 1 file changed, 7 insertions(+)
c62b8e
c62b8e
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
c62b8e
index d97fbe24d4..ee9c66aba8 100755
c62b8e
--- a/test/TEST-01-BASIC/test.sh
c62b8e
+++ b/test/TEST-01-BASIC/test.sh
c62b8e
@@ -61,6 +61,13 @@ EOF
c62b8e
     )
c62b8e
     setup_nspawn_root
c62b8e
 
c62b8e
+    # mask some services that we do not want to run in these tests
c62b8e
+    ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
c62b8e
+    ln -s /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service
c62b8e
+    ln -s /dev/null $initdir/etc/systemd/system/systemd-networkd.service
c62b8e
+    ln -s /dev/null $initdir/etc/systemd/system/systemd-networkd.socket
c62b8e
+    ln -s /dev/null $initdir/etc/systemd/system/systemd-resolved.service
c62b8e
+
c62b8e
     ddebug "umount $TESTDIR/root"
c62b8e
     umount $TESTDIR/root
c62b8e
 }