1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

test: move TEST-25-IMPORT setup to static files

Also run mask_supporting_services() here.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-12-10 09:10:28 +01:00
parent f4c40fd754
commit 6e796683df
4 changed files with 9 additions and 15 deletions

View File

@ -12,22 +12,9 @@ test_setup() {
eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
setup_basic_environment
dracut_install dd gunzip mv tar diff
# setup the testsuite service
cat >$initdir/etc/systemd/system/testsuite.service <<EOF
[Unit]
Description=Testsuite service
[Service]
ExecStart=/testsuite.sh
Type=oneshot
EOF
cp testsuite.sh $initdir/
setup_testsuite
mask_supporting_services
)
setup_nspawn_root
}
do_test "$@"
do_test "$@" 25

View File

@ -92,6 +92,7 @@ BASICTOOLS=(
sulogin
sysctl
tail
tar
tee
test
touch

View File

@ -0,0 +1,6 @@
[Unit]
Description=TEST-25-IMPORT
[Service]
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
Type=oneshot