All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] test-runner: Fix not waiting for system_bus_socket
@ 2022-06-01 21:12 Luiz Augusto von Dentz
  2022-06-01 22:26 ` [BlueZ] " bluez.test.bot
  2022-06-02 19:10 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2022-06-01 21:12 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This makes test-runner wait for system_bus_socket to be available before
continuing otherwise the likes of bluetoothd would likely fail to start.
---
 tools/test-runner.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/test-runner.c b/tools/test-runner.c
index 1f1a8c36f..945a16a77 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -452,13 +452,13 @@ static pid_t start_dbus_daemon(void)
 
 		if (!stat("/run/dbus/system_bus_socket", &st)) {
 			printf("Found D-Bus daemon socket\n");
-			break;
+			return pid;
 		}
 
-		usleep(25 * 1000);
+		sleep(1);
 	}
 
-	return pid;
+	return -1;
 }
 
 static const char *daemon_table[] = {
-- 
2.35.1


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

* RE: [BlueZ] test-runner: Fix not waiting for system_bus_socket
  2022-06-01 21:12 [PATCH BlueZ] test-runner: Fix not waiting for system_bus_socket Luiz Augusto von Dentz
@ 2022-06-01 22:26 ` bluez.test.bot
  2022-06-02 19:10 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2022-06-01 22:26 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 995 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=646680

---Test result---

Test Summary:
CheckPatch                    PASS      1.06 seconds
GitLint                       PASS      0.72 seconds
Prep - Setup ELL              PASS      44.61 seconds
Build - Prep                  PASS      0.57 seconds
Build - Configure             PASS      8.79 seconds
Build - Make                  PASS      1393.52 seconds
Make Check                    PASS      12.16 seconds
Make Check w/Valgrind         PASS      447.51 seconds
Make Distcheck                PASS      233.13 seconds
Build w/ext ELL - Configure   PASS      8.55 seconds
Build w/ext ELL - Make        PASS      1382.88 seconds
Incremental Build with patchesPASS      0.00 seconds



---
Regards,
Linux Bluetooth


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

* Re: [PATCH BlueZ] test-runner: Fix not waiting for system_bus_socket
  2022-06-01 21:12 [PATCH BlueZ] test-runner: Fix not waiting for system_bus_socket Luiz Augusto von Dentz
  2022-06-01 22:26 ` [BlueZ] " bluez.test.bot
@ 2022-06-02 19:10 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2022-06-02 19:10 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Wed,  1 Jun 2022 14:12:30 -0700 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> This makes test-runner wait for system_bus_socket to be available before
> continuing otherwise the likes of bluetoothd would likely fail to start.
> ---
>  tools/test-runner.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Here is the summary with links:
  - [BlueZ] test-runner: Fix not waiting for system_bus_socket
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=7bcd32e67e93

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-06-02 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 21:12 [PATCH BlueZ] test-runner: Fix not waiting for system_bus_socket Luiz Augusto von Dentz
2022-06-01 22:26 ` [BlueZ] " bluez.test.bot
2022-06-02 19:10 ` [PATCH BlueZ] " patchwork-bot+bluetooth

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.