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:
parent
e29e4d5742
commit
2c75449a38
@ -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
|
||||||
|
9
test/units/testsuite-46.service
Normal file
9
test/units/testsuite-46.service
Normal 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
|
Loading…
Reference in New Issue
Block a user