File 0013-TEST-12-ISSUE-3171-adapt-for-SUSE-openQA.patch of Package systemd-v244-testsuite
From b7589531899ba0fc06778e31fe3232a3a18ebb21 Mon Sep 17 00:00:00 2001
From: Thomas Blume <Thomas.Blume@suse.com>
Date: Thu, 19 Dec 2019 08:54:20 +0100
Subject: [PATCH 13/24] TEST-12-ISSUE-3171: adapt for SUSE openQA
---
test/TEST-12-ISSUE-3171/test.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/test/TEST-12-ISSUE-3171/test.sh b/test/TEST-12-ISSUE-3171/test.sh
index d9a0e1a3dd..83f190203b 100755
--- a/test/TEST-12-ISSUE-3171/test.sh
+++ b/test/TEST-12-ISSUE-3171/test.sh
@@ -14,10 +14,10 @@ test_setup() {
eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
setup_basic_environment
- mask_supporting_services
dracut_install cat mv stat nc
# setup the testsuite service
+ echo "testservice=$initdir/etc/systemd/system/testsuite.service"
cat >$initdir/etc/systemd/system/testsuite.service <<EOF
[Unit]
Description=Testsuite service
@@ -76,7 +76,7 @@ echo D | nc -w1 -U /run/test.socket
[[ "$(stat --format='%G' /run/test.socket)" == adm ]]
-touch /testok
+echo SUSEtest OK > /testok
EOF
chmod 0755 $initdir/test-socket-group.sh
@@ -84,6 +84,9 @@ EOF
)
setup_nspawn_root
+
+ mask_supporting_services_nspawn
+ mask_supporting_services
}
do_test "$@"
--
2.16.4