summaryrefslogtreecommitdiff
path: root/test/TEST-15-DROPIN
diff options
context:
space:
mode:
authorFilipe Brandenburger <filbranden@google.com>2018-03-01 21:07:27 -0800
committerFilipe Brandenburger <filbranden@google.com>2018-03-01 21:14:13 -0800
commit67348e791dd0c546965e48cc091f1e8245b9260d (patch)
treebeeaa201d8fcb7ae72db688d5d7c8d9717084d55 /test/TEST-15-DROPIN
parent9639b1752cf97eeee93d2a3dbc8531d6d4d4bc2e (diff)
downloadsystemd-67348e791dd0c546965e48cc091f1e8245b9260d.tar.gz
test: masked unit with drop-ins
Diffstat (limited to 'test/TEST-15-DROPIN')
-rwxr-xr-xtest/TEST-15-DROPIN/test-dropin.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/TEST-15-DROPIN/test-dropin.sh b/test/TEST-15-DROPIN/test-dropin.sh
index 9d8af99ac4..ab0a58caea 100755
--- a/test/TEST-15-DROPIN/test-dropin.sh
+++ b/test/TEST-15-DROPIN/test-dropin.sh
@@ -179,6 +179,16 @@ test_masked_dropins () {
ln -sf ../b.service /usr/lib/systemd/system/a.service.wants/b.service
check_ko a Wants b.service
+ # 'a' is masked but has an override config file
+ echo "*** test a is masked but has an override"
+ create_services a b
+ ln -sf /dev/null /etc/systemd/system/a.service
+ cat >/usr/lib/systemd/system/a.service.d/override.conf <<EOF
+[Unit]
+After=b.service
+EOF
+ check_ok a UnitFileState masked
+
# 'b1' is an alias for 'b': masking 'b' dep should not influence 'b1' dep
echo "*** test a wants b, b1, and one is masked"
create_services a b