mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
net: Silence 'has no peer' messages in testing mode
When running qtests with -nodefaults, we are not interested in these 'XYZ has no peer' messages. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1534419358-10932-3-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
880b169a45
commit
a3ab1dc072
1 changed files with 1 additions and 2 deletions
3
vl.c
3
vl.c
|
@ -4559,11 +4559,10 @@ int main(int argc, char **argv, char **envp)
|
|||
* (2) CONFIG_SLIRP not set, in which case the implicit "-net nic"
|
||||
* sets up a nic that isn't connected to anything.
|
||||
*/
|
||||
if (!default_net) {
|
||||
if (!default_net && (!qtest_enabled() || has_defaults)) {
|
||||
net_check_clients();
|
||||
}
|
||||
|
||||
|
||||
if (boot_once) {
|
||||
qemu_boot_set(boot_once, &error_fatal);
|
||||
qemu_register_reset(restore_boot_order, g_strdup(boot_order));
|
||||
|
|
Loading…
Reference in a new issue