summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/networkd-test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/networkd-test.py b/test/networkd-test.py
index 8599398c1c..e0dddeb053 100755
--- a/test/networkd-test.py
+++ b/test/networkd-test.py
@@ -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