1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

test: move TEST-46-HOMED to static files

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-20 19:52:41 +01:00
parent e29e4d5742
commit 2c75449a38
3 changed files with 10 additions and 17 deletions

View File

@ -16,22 +16,6 @@ test_setup() {
setup_basic_environment setup_basic_environment
mask_supporting_services mask_supporting_services
# setup the testsuite service
cat >$initdir/etc/systemd/system/testsuite.service <<EOF
[Unit]
Description=Testsuite service
Before=getty-pre.target
Wants=getty-pre.target
[Service]
ExecStart=/bin/bash -x /testsuite.sh
Type=oneshot
NotifyAccess=all
EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1 ) || return 1
setup_nspawn_root setup_nspawn_root
@ -39,4 +23,4 @@ EOF
umount $TESTDIR/root umount $TESTDIR/root
} }
do_test "$@" do_test "$@" 46

View File

@ -0,0 +1,9 @@
[Unit]
Description=TEST-46-HOMED
Before=getty-pre.target
Wants=getty-pre.target
[Service]
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
Type=oneshot
NotifyAccess=all