test/TEST-15: call daemon-reload in two more places

Sometimes the test would fail there, nondeterministically. I'm not sure why,
but relying on PID1 not caching the file is clearly very brittle. Let's instead
call daemon-reload.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-21 17:01:09 +01:00
parent 4e2ac45a83
commit 1aa0f38491
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,7 @@ test_basic_dropins () {
[Service]
ExecCondition=/bin/echo %n
EOF
systemctl daemon-reload
check_ok test15-a ExecCondition "/bin/echo test15-a"
check_ok test15-b ExecCondition "/bin/echo test15-b"
rm -rf /usr/lib/systemd/system/service.d
@ -138,6 +139,7 @@ test_hierarchical_dropins () {
[Service]
ExecCondition=/bin/echo $dropin
" > /usr/lib/systemd/system/$dropin/override.conf
systemctl daemon-reload
check_ok a-b-c ExecCondition "/bin/echo $dropin"
done
for dropin in service.d a-.service.d a-b-.service.d a-b-c.service.d; do