aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/ipmi-bt-test.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2023-10-18 22:11:23 +0300
committerThomas Huth <thuth@redhat.com>2023-10-27 10:13:17 +0200
commit1aa84a4b6e2cd3f0969101f1e608415e5381d9a2 (patch)
treef3bef81c1023f784785b9f1a123717f852bd5f4f /tests/qtest/ipmi-bt-test.c
parentc73272f52fc0e7614e4110b147b9d6efb589854b (diff)
ipmi-bt-test: force ipv4
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 <vsementsov@yandex-team.ru> Message-ID: <20231018191123.1176602-1-vsementsov@yandex-team.ru> Acked-by: Corey Minyard <cminyard@mvista.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/ipmi-bt-test.c')
-rw-r--r--tests/qtest/ipmi-bt-test.c2
1 files changed, 1 insertions, 1 deletions
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);
global_qtest = qtest_initf(
- " -chardev socket,id=ipmi0,host=localhost,port=%d,reconnect=10"
+ " -chardev socket,id=ipmi0,host=127.0.0.1,port=%d,reconnect=10"
" -device ipmi-bmc-extern,chardev=ipmi0,id=bmc0"
" -device isa-ipmi-bt,bmc=bmc0", emu_port);
qtest_irq_intercept_in(global_qtest, "ioapic");