mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
test: move TEST-25-IMPORT setup to static files
Also run mask_supporting_services() here.
This commit is contained in:
parent
f4c40fd754
commit
6e796683df
@ -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
|
||||
|
@ -92,6 +92,7 @@ BASICTOOLS=(
|
||||
sulogin
|
||||
sysctl
|
||||
tail
|
||||
tar
|
||||
tee
|
||||
test
|
||||
touch
|
||||
|
6
test/units/testsuite-25.service
Normal file
6
test/units/testsuite-25.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=TEST-25-IMPORT
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
||||
Type=oneshot
|
Loading…
Reference in New Issue
Block a user