naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
2aacef
From a8a0c31123f7a8c1c317bb1a83548f15b02974d0 Mon Sep 17 00:00:00 2001
2aacef
From: Frantisek Sumsal <fsumsal@redhat.com>
2aacef
Date: Thu, 24 Nov 2022 15:23:12 +0100
594167
Subject: [PATCH] test: don't test buses we don't ship
594167
594167
rhel-only
2aacef
Related: #2138081
594167
---
2aacef
 test/units/testsuite-21.sh | 18 ++----------------
2aacef
 1 file changed, 2 insertions(+), 16 deletions(-)
594167
594167
diff --git a/test/units/testsuite-21.sh b/test/units/testsuite-21.sh
2aacef
index d931e63167..e7d97ae06e 100755
594167
--- a/test/units/testsuite-21.sh
594167
+++ b/test/units/testsuite-21.sh
2aacef
@@ -27,13 +27,13 @@ systemctl log-level info
594167
 # TODO
594167
 #   * check for possibly newly introduced buses?
594167
 BUS_LIST=(
594167
-    org.freedesktop.home1
594167
+#    org.freedesktop.home1
594167
     org.freedesktop.hostname1
594167
     org.freedesktop.import1
594167
     org.freedesktop.locale1
594167
     org.freedesktop.login1
594167
     org.freedesktop.machine1
594167
-    org.freedesktop.portable1
594167
+#    org.freedesktop.portable1
594167
     org.freedesktop.resolve1
594167
     org.freedesktop.systemd1
594167
     org.freedesktop.timedate1
2aacef
@@ -46,20 +46,6 @@ if tail -n +1 /proc/pressure/{cpu,io,memory}; then
2aacef
     )
2aacef
 fi
594167
 
2aacef
-# Some services require specific conditions:
2aacef
-#   - systemd-timesyncd can't run in a container
2aacef
-#   - systemd-networkd can run in a container if it has CAP_NET_ADMIN capability
2aacef
-if ! systemd-detect-virt --container; then
2aacef
-    BUS_LIST+=(
2aacef
-        org.freedesktop.network1
2aacef
-        org.freedesktop.timesync1
2aacef
-    )
2aacef
-elif busctl introspect org.freedesktop.network1 / &>/dev/null; then
2aacef
-    BUS_LIST+=(
2aacef
-        org.freedesktop.network1
2aacef
-    )
2aacef
-fi
2aacef
-
2aacef
 SESSION_BUS_LIST=(
2aacef
     org.freedesktop.systemd1
2aacef
 )