From d0ac89a1e8bd0b434eaa68aa010ebc1bc621c5fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 20 Mar 2020 19:05:36 +0100 Subject: [PATCH] test: move TEST-43-* setup to static files Setup of lingering is dropped. I don't think it's necessary for anything, because the unit is still pulled in from the testsuite service. --- test/TEST-43-PRIVATEUSER-UNPRIV/test.sh | 30 +------------------ test/test-functions | 27 +++++++++-------- test/units/testsuite-43.service | 8 +++++ .../testsuite.sh => units/testsuite-43.sh} | 0 4 files changed, 23 insertions(+), 42 deletions(-) create mode 100644 test/units/testsuite-43.service rename test/{TEST-43-PRIVATEUSER-UNPRIV/testsuite.sh => units/testsuite-43.sh} (100%) diff --git a/test/TEST-43-PRIVATEUSER-UNPRIV/test.sh b/test/TEST-43-PRIVATEUSER-UNPRIV/test.sh index 3b40bf7d8bb..4eed8242fd8 100755 --- a/test/TEST-43-PRIVATEUSER-UNPRIV/test.sh +++ b/test/TEST-43-PRIVATEUSER-UNPRIV/test.sh @@ -11,39 +11,11 @@ test_setup() { eval $(udevadm info --export --query=env --name=${LOOPDEV}p2) setup_basic_environment - inst_binary stat - mask_supporting_services - - # Allocate user for running test case under - mkdir -p $initdir/etc/sysusers.d - cat >$initdir/etc/sysusers.d/testuser.conf <$initdir/etc/systemd/system/testsuite.service <$initdir/etc/sysusers.d/testuser.conf <