@@ -20,14 +20,10 @@ if [ -f /run/testsuite82.touch3 ]; then
2020 read -r x < & 5
2121 test " $x " = " oinkoink"
2222
23- # Check that the surviving service is still around
24- test " $( systemctl show -P ActiveState testsuite-82-survive.service) " = " active"
23+ # Check that no service is still around
24+ test " $( systemctl show -P ActiveState testsuite-82-survive.service) " ! = " active"
2525 test " $( systemctl show -P ActiveState testsuite-82-nosurvive.service) " ! = " active"
2626
27- # Take out the big guns now, and kill the service via SIGKILL (SIGTERM is blocked after all, see below)
28- systemctl --signal=KILL kill testsuite-82-survive.service
29- systemctl stop testsuite-82-survive.service
30-
3127 # All succeeded, exit cleanly now
3228
3329elif [ -f /run/testsuite82.touch2 ]; then
@@ -47,8 +43,8 @@ elif [ -f /run/testsuite82.touch2 ]; then
4743 systemd-notify --fd=3 --pid=parent 3< " $T "
4844 rm " $T "
4945
50- # Check that the surviving service is still around
51- test " $( systemctl show -P ActiveState testsuite-82-survive.service) " = " active"
46+ # Check that no service is still around
47+ test " $( systemctl show -P ActiveState testsuite-82-survive.service) " ! = " active"
5248 test " $( systemctl show -P ActiveState testsuite-82-nosurvive.service) " ! = " active"
5349
5450 # Test that we really are in the new overlayfs root fs
@@ -86,8 +82,8 @@ elif [ -f /run/testsuite82.touch ]; then
8682 systemd-notify --fd=3 --pid=parent 3< " $T "
8783 rm " $T "
8884
89- # Check that the surviving service is still around
90- test " $( systemctl show -P ActiveState testsuite-82-survive.service) " = " active"
85+ # Check that no service survived, regardless of the configuration
86+ test " $( systemctl show -P ActiveState testsuite-82-survive.service) " ! = " active"
9187 test " $( systemctl show -P ActiveState testsuite-82-nosurvive.service) " ! = " active"
9288
9389 # This time we test the /run/nextroot/ root switching logic. (We synthesize a new rootfs from the old via overlayfs)
0 commit comments