From 665b7e58baccf26ccffc1961986271b5832d546e Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 16 Oct 2012 16:20:33 +0200 Subject: [PATCH] TEST-04-FULL-SYSTEMD: fixed poweroff --- test/TEST-04-FULL-SYSTEMD/test-init.sh | 2 ++ test/TEST-04-FULL-SYSTEMD/test.sh | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/test/TEST-04-FULL-SYSTEMD/test-init.sh b/test/TEST-04-FULL-SYSTEMD/test-init.sh index d41f0b041..cb7ce1274 100755 --- a/test/TEST-04-FULL-SYSTEMD/test-init.sh +++ b/test/TEST-04-FULL-SYSTEMD/test-init.sh @@ -37,4 +37,6 @@ if strstr "$CMDLINE" "rd.shell"; then strstr "$(setsid --help)" "control" && CTTY="-c" setsid $CTTY sh -i fi +set -x +/usr/bin/systemctl poweroff echo "Powering down." diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh index d76f3d98a..8f91b32fd 100755 --- a/test/TEST-04-FULL-SYSTEMD/test.sh +++ b/test/TEST-04-FULL-SYSTEMD/test.sh @@ -131,7 +131,6 @@ After=basic.target [Service] ExecStart=/sbin/test-init -ExecStopPost=/usr/bin/systemctl poweroff Type=oneshot StandardInput=tty StandardOutput=tty @@ -141,11 +140,12 @@ EOF # make the testsuite the default target ln -fs testsuite.target $initdir/etc/systemd/system/default.target - mkdir -p $initdir/etc/rc.d - cat >$initdir/etc/rc.d/rc.local <$initdir/etc/rc.d/rc.local <