From nobody Wed Nov 27 18:32:59 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=yandex-team.ru ARC-Seal: i=1; a=rsa-sha256; t=1697656335; cv=none; d=zohomail.com; s=zohoarc; b=C4AWMXlxnxt6zaa76LDeIow2w4u5lLr9jbVDcvYRiTc5YuiZKHmgxR8a5TR4W/jLWm8kPe+/ZV815J+ZfFdgmttsn0pQrETUjKYF9RnXV/RsU8MUAD5P+Bu3Lo6fDjUX7fkm1fltmiyIum9bxvpm/UEy9Crrb0iL3gP4qXMb+yo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697656335; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=uCWN1FEOfx/pGWhankfrORwQTTCG7DNUgxjj2vFcKmk=; b=UXDny0pqCczE4bJ+0A258oMv+6OpXQM0U2fbeq52O+Hy2RcFXka1F69/n9jALdHsoi5bXkzGZMll+nI+FpHsdXHhhoXq0vg6YEandGMfRJMIwKZ7G78MUjr1W+6TV2D9mTuJ6FMQ2qE54nGU2Rh9ri2rs88ZqlwM2fjnV/0/Fcc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 169765633468646.22257097240026; Wed, 18 Oct 2023 12:12:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtBxN-00038I-LB; Wed, 18 Oct 2023 15:11:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtBxJ-000380-4y for qemu-devel@nongnu.org; Wed, 18 Oct 2023 15:11:45 -0400 Received: from forwardcorp1b.mail.yandex.net ([178.154.239.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtBxF-0002ii-6a for qemu-devel@nongnu.org; Wed, 18 Oct 2023 15:11:44 -0400 Received: from mail-nwsmtp-smtp-corp-main-44.iva.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-44.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:1bac:0:640:75a2:0]) by forwardcorp1b.mail.yandex.net (Yandex) with ESMTP id AAD326189E; Wed, 18 Oct 2023 22:11:35 +0300 (MSK) Received: from vsementsov-lin.. (unknown [2a02:6b8:b081:b667::1:1d]) by mail-nwsmtp-smtp-corp-main-44.iva.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id OBrB3JBOiCg0-6ch6UrvN; Wed, 18 Oct 2023 22:11:35 +0300 Precedence: bulk X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1697656295; bh=uCWN1FEOfx/pGWhankfrORwQTTCG7DNUgxjj2vFcKmk=; h=Message-Id:Date:Cc:Subject:To:From; b=CuR0n1/kmspglxWuxv+yJS1qXzi5fQRBUf//wcmFXSW/B5ZofQDlaUSarTPiWFRVZ JuL1vVpTU0mXm9kHZCM3O7kfdvKjNpYit+SLcNR/eqG3UL6PS9bna80DctSuovLntn rCd78I4fAJLJi82GRKv6snet+wRQbdlm68ql9tk8= Authentication-Results: mail-nwsmtp-smtp-corp-main-44.iva.yp-c.yandex.net; dkim=pass header.i=@yandex-team.ru From: Vladimir Sementsov-Ogievskiy To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, lvivier@redhat.com, thuth@redhat.com, minyard@acm.org, yc-core@yandex-team.ru, vsementsov@yandex-team.ru, den-plotnikov@yandex-team.ru, daniil.tatianin@yandex.ru Subject: [PATCH] ipmi-bt-test: force ipv4 Date: Wed, 18 Oct 2023 22:11:23 +0300 Message-Id: <20231018191123.1176602-1-vsementsov@yandex-team.ru> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=178.154.239.136; envelope-from=vsementsov@yandex-team.ru; helo=forwardcorp1b.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @yandex-team.ru) X-ZM-MESSAGEID: 1697656337211100001 Content-Type: text/plain; charset="utf-8" We open ipv4 listening socket. But "localhost" in qemu parameters may load to Qemu trying to connect with ipv6 and fail with "Connection refused". Force ipv4 by using ipv4 ip address. Signed-off-by: Vladimir Sementsov-Ogievskiy Acked-by: Corey Minyard Acked-by: Thomas Huth --- tests/qtest/ipmi-bt-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/ipmi-bt-test.c b/tests/qtest/ipmi-bt-test.c index ed431e34e6..383239bcd4 100644 --- a/tests/qtest/ipmi-bt-test.c +++ b/tests/qtest/ipmi-bt-test.c @@ -411,7 +411,7 @@ int main(int argc, char **argv) g_test_init(&argc, &argv, NULL); =20 global_qtest =3D qtest_initf( - " -chardev socket,id=3Dipmi0,host=3Dlocalhost,port=3D%d,reconnect= =3D10" + " -chardev socket,id=3Dipmi0,host=3D127.0.0.1,port=3D%d,reconnect= =3D10" " -device ipmi-bmc-extern,chardev=3Dipmi0,id=3Dbmc0" " -device isa-ipmi-bt,bmc=3Dbmc0", emu_port); qtest_irq_intercept_in(global_qtest, "ioapic"); --=20 2.34.1