1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-27 01:57:35 +03:00

test: move TEST-36-NUMAPOLICY setup to static files

No need to call setup_nspawn_root() if we plan to only run under qemu.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-12-10 09:54:36 +01:00
parent fbaa11372b
commit 097d8c6eb7
3 changed files with 7 additions and 16 deletions

View File

@ -16,22 +16,7 @@ test_setup() {
setup_basic_environment
mask_supporting_services
dracut_install mktemp
# setup the testsuite service
cat >$initdir/etc/systemd/system/testsuite.service <<EOF
[Unit]
Description=Testsuite service
[Service]
ExecStart=/bin/bash -x /testsuite.sh
Type=oneshot
EOF
cp testsuite.sh $initdir/
setup_testsuite
)
setup_nspawn_root
}
do_test "$@"
do_test "$@" 36

View File

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