mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
TEST-46-HOMED: Simplify service unit
Let's remove the unneeded NotifyAccess=all and start the socket and service in the test itself instead of via the service unit. This makes the test unit identical to the other test units which will allow us to autogenerate it in a later commit.
This commit is contained in:
parent
f6af2976aa
commit
20e94309a7
|
@ -3,11 +3,8 @@
|
||||||
Description=TEST-46-HOMED
|
Description=TEST-46-HOMED
|
||||||
Wants=getty-pre.target
|
Wants=getty-pre.target
|
||||||
Before=getty-pre.target
|
Before=getty-pre.target
|
||||||
Requires=systemd-homed.service systemd-userdbd.socket
|
|
||||||
After=systemd-homed.service systemd-userdbd.socket
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=rm -f /failed /testok
|
ExecStartPre=rm -f /failed /testok
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
NotifyAccess=all
|
|
||||||
|
|
|
@ -35,6 +35,8 @@ wait_for_state() {
|
||||||
|
|
||||||
FSTYPE="$(stat --file-system --format "%T" /)"
|
FSTYPE="$(stat --file-system --format "%T" /)"
|
||||||
|
|
||||||
|
systemctl start systemd-homed.service systemd-userdbd.socket
|
||||||
|
|
||||||
systemd-analyze log-level debug
|
systemd-analyze log-level debug
|
||||||
systemctl service-log-level systemd-homed debug
|
systemctl service-log-level systemd-homed debug
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue