All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] tools/mgmt-tester: Adjust test setup complete check
@ 2021-06-03  0:04 Inga Stotland
  2021-06-03  0:04 ` [PATCH BlueZ 2/2] tools/mgmt-tester: Add setup condition to resolve list Inga Stotland
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Inga Stotland @ 2021-06-03  0:04 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: luiz.dentz, tedd.an, Inga Stotland

This changes check for setup complete in client_cmd_complete() callback
from tester_setup_complete() to test_setup_condition_complete(). This
allows for combining setup conditions when setup_bthost() is called.
---
 tools/mgmt-tester.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 4dd3490c2..657b7aaa0 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -5831,7 +5831,7 @@ static void client_cmd_complete(uint16_t opcode, uint8_t status,
 	if (status)
 		tester_setup_failed();
 	else
-		tester_setup_complete();
+		test_setup_condition_complete(data);
 }
 
 static void setup_bthost(void)
@@ -5842,6 +5842,7 @@ static void setup_bthost(void)
 
 	bthost = hciemu_client_get_host(data->hciemu);
 	bthost_set_cmd_complete_cb(bthost, client_cmd_complete, data);
+	test_add_setup_condition(data);
 
 	if (data->hciemu_type == HCIEMU_TYPE_LE ||
 		test->client_enable_adv) {
-- 
2.26.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-03 20:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03  0:04 [PATCH BlueZ 1/2] tools/mgmt-tester: Adjust test setup complete check Inga Stotland
2021-06-03  0:04 ` [PATCH BlueZ 2/2] tools/mgmt-tester: Add setup condition to resolve list Inga Stotland
2021-06-03  0:50 ` [BlueZ,1/2] tools/mgmt-tester: Adjust test setup complete check bluez.test.bot
2021-06-03 19:38 ` [PATCH BlueZ 1/2] " Tedd Ho-Jeong An
2021-06-03 20:18   ` Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.