mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-24 02:03:54 +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='',
|
def do_test(self, coldplug=True, ipv6=False, extra_opts='',
|
||||||
online_timeout=10, dhcp_mode='yes'):
|
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, '''\
|
self.write_network(self.config, '''\
|
||||||
[Match]
|
[Match]
|
||||||
Name=%s
|
Name=%s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user