When running qtests with -nodefaults, we are not interested in these 'XYZ has no peer' messages.
Signed-off-by: Thomas Huth <th...@redhat.com> --- net/net.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/net/net.c b/net/net.c index 29f8398..58bf85e 100644 --- a/net/net.c +++ b/net/net.c @@ -1427,12 +1427,13 @@ void net_check_clients(void) net_hub_check_clients(); - QTAILQ_FOREACH(nc, &net_clients, next) { - if (!nc->peer) { - warn_report("%s %s has no peer", - nc->info->type == NET_CLIENT_DRIVER_NIC - ? "nic" : "netdev", - nc->name); + if (!qtest_enabled() || nd_table[0].used) { + QTAILQ_FOREACH(nc, &net_clients, next) { + if (!nc->peer) { + warn_report("%s %s has no peer", + nc->info->type == NET_CLIENT_DRIVER_NIC + ? "nic" : "netdev", nc->name); + } } } -- 1.8.3.1