Skip to contentSkip to conversation

tests/qtest: Pass down do_connect param in qtest_init_with_env()

PATCH In review Xiaoyao Li 3 participants 4 messages Apr 22, 2025

lore
Share & tools
lore

Xiaoyao Li

author
#0 lore raw

PATCH 1/1 tests/qtest: Pass down do_connect param in qtest_init_with_env()

The @do_connect parameter of qtest_init_with_env() is not used. Fix it by passing it down to qtest_init_with_env_and_capabilities() instead of hard coding a true.

Fixes 5357ef823a1f ("tests/qtest: defer connection")
---
 tests/qtest/libqtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/libqtest.c +1 -1
index fad307d125aa..518710909c3e 100644
@@ -597,7 +597,7 @@ QTestState *qtest_init_with_env_and_capabilities(const char *var,
 QTestState *qtest_init_with_env(const char *var, const char *extra_args,
                                 bool do_connect)
 {
-    return qtest_init_with_env_and_capabilities(var, extra_args, NULL, true);
+    return qtest_init_with_env_and_capabilities(var, extra_args, NULL, do_connect);
 }
 
 QTestState *qtest_init(const char *extra_args)
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Xiaoyao Li

The @do_connect parameter of qtest_init_with_env() is not used. Fix it by passing it down to qtest_init_with_env_and_capabilities() instead of hard coding a true.

Fixes 5357ef823a1f ("tests/qtest: defer connection")
---
  tests/qtest/libqtest.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
#2 lore raw
Quoted 5 lines · Philippe Mathieu-Daudé
Quoted 4 lines · Xiaoyao Li

The @do_connect parameter of qtest_init_with_env() is not used. Fix it by passing it down to qtest_init_with_env_and_capabilities() instead of hard coding a true.

Quoted 8 lines
Quoted 5 lines
Fixes 5357ef823a1f ("tests/qtest: defer connection")

---
  tests/qtest/libqtest.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)

This is the same bug that Vladimir fixed:

https://lore.kernel.org/qemu-devel/[email protected]/

- Steve

author
#3 lore raw
Quoted 12 lines · Steven Sistare
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Xiaoyao Li

The @do_connect parameter of qtest_init_with_env() is not used. Fix it by passing it down to qtest_init_with_env_and_capabilities() instead of hard coding a true.

Fixes 5357ef823a1f ("tests/qtest: defer connection")

---
  tests/qtest/libqtest.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 6 lines
Quoted 2 lines

This is the same bug that Vladimir fixed:

https://lore.kernel.org/qemu-devel/20250410162250.329941-1- [email protected]/

Thanks for the info!

Quoted 4 lines

- Steve