From: Mike Yuan Date: Wed, 5 Jul 2023 18:40:01 +0000 (+0800) Subject: TEST-03-JOBS: test indirect PropagatesStopTo= X-Git-Tag: v254-rc1~22^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf3dfa62021db45e8b3c6e301659f9a51deb31cd;p=thirdparty%2Fsystemd.git TEST-03-JOBS: test indirect PropagatesStopTo= --- diff --git a/test/testsuite-03.units/propagatestopto-indirect.target b/test/testsuite-03.units/propagatestopto-indirect.target new file mode 100644 index 00000000000..e8229a7d293 --- /dev/null +++ b/test/testsuite-03.units/propagatestopto-indirect.target @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +PropagatesStopTo=propagatestopto-and-pullin.target diff --git a/test/units/testsuite-03.sh b/test/units/testsuite-03.sh index 22c500debf0..aa1d92a6919 100755 --- a/test/units/testsuite-03.sh +++ b/test/units/testsuite-03.sh @@ -145,4 +145,12 @@ systemctl --quiet is-active sleep-infinity-simple.service systemctl restart propagatestopto-only.target assert_rc 3 systemctl --quiet is-active sleep-infinity-simple.service +systemctl start propagatesstopto-indirect.target propagatestopto-and-pullin.target +systemctl --quiet is-active propagatestopto-indirect.target +systemctl --quiet is-active propagatestopto-and-pullin.target + +systemctl restart propagatestopto-indirect.target +assert_rc 3 systemctl --quiet is-active propagatestopto-and-pullin.target +assert_rc 3 systemctl --quiet is-active sleep-infinity-simple.service + touch /testok