test-timesync: ignore failure to listen on /run/systemd/netif/links/ (#6463)

Fixes #6353.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-07-28 03:33:43 -04:00 committed by Martin Pitt
parent 9fcaa574f0
commit 36484c0341
1 changed files with 4 additions and 0 deletions

View File

@ -1092,6 +1092,10 @@ static int manager_network_monitor_listen(Manager *m) {
assert(m);
r = sd_network_monitor_new(&m->network_monitor, NULL);
if (r == -ENOENT) {
log_info("Systemd does not appear to be running, not listening for systmed-networkd events.");
return 0;
}
if (r < 0)
return r;