From: Zbigniew Jędrzejewski-Szmek Date: Tue, 10 Dec 2019 08:43:14 +0000 (+0100) Subject: test: move TEST-32-OOMPOLICY setup to static files X-Git-Tag: v246-rc1~682^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8937bed08701875e4c1540ffb28a0d34243b94c;p=thirdparty%2Fsystemd.git test: move TEST-32-OOMPOLICY setup to static files --- diff --git a/test/TEST-32-OOMPOLICY/test.sh b/test/TEST-32-OOMPOLICY/test.sh index 36aad419eac..32fac7a289a 100755 --- a/test/TEST-32-OOMPOLICY/test.sh +++ b/test/TEST-32-OOMPOLICY/test.sh @@ -16,21 +16,7 @@ test_setup() { setup_basic_environment mask_supporting_services - - # setup the testsuite service - cat >$initdir/etc/systemd/system/testsuite.service < /proc/sys/kernel/sysrq - echo f > /proc/sysrq-trigger + echo 1 >/proc/sys/kernel/sysrq + echo f >/proc/sysrq-trigger while : ; do STATE=`systemctl show -p ActiveState --value oomtest.service` @@ -32,6 +34,6 @@ if test -f /sys/fs/cgroup/system.slice/testsuite.service/memory.oom.group ; then systemd-analyze log-level info fi -echo OK > /testok +echo OK >/testok exit 0