mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
tests: show journal on systemd-resolved.service failures (#5297)
In networkd-test.py, show resolved's journal on failure, to debug issues like https://github.com/systemd/systemd/pull/5283.
This commit is contained in:
parent
7961116e2c
commit
d26fdaa236
@ -201,7 +201,11 @@ class ClientTestBase(NetworkdTestingUtilities):
|
||||
|
||||
def do_test(self, coldplug=True, ipv6=False, extra_opts='',
|
||||
online_timeout=10, dhcp_mode='yes'):
|
||||
subprocess.check_call(['systemctl', 'start', 'systemd-resolved'])
|
||||
try:
|
||||
subprocess.check_call(['systemctl', 'start', 'systemd-resolved'])
|
||||
except subprocess.CalledProcessError:
|
||||
self.show_journal('systemd-resolved.service')
|
||||
raise
|
||||
self.write_network(self.config, '''\
|
||||
[Match]
|
||||
Name=%s
|
||||
|
Loading…
Reference in New Issue
Block a user