test-network: show interface status again when wait-online failed

Fixes a bug in 10d670a3c1.

This also makes wait_online() show a short message when a requested
interface not found.
This commit is contained in:
Yu Watanabe
2024-02-15 00:37:03 +00:00
committed by Luca Boccassi
parent d5ff4b6d4c
commit 6854322483
+3 -1
View File
@@ -1037,7 +1037,9 @@ class Utilities():
for link in links_with_operstate:
name = link.split(':')[0]
if link_exists(name):
networkctl_status(name)
print(networkctl_status(name))
else:
print(f'Interface {name} not found.')
raise
if not bool_any and setup_state:
for link in links_with_operstate: