ctdb-tests: Process-exists unit tests should wait until PID is registered
authorMartin Schwenke <martin@meltin.net>
Wed, 25 Oct 2017 01:15:23 +0000 (12:15 +1100)
committerAmitay Isaacs <amitay@samba.org>
Thu, 26 Oct 2017 11:32:24 +0000 (13:32 +0200)
commit0e8b781e0740310d251bf1fa7db7a467d4f7f9b5
tree88beedcced518cf466bf1024992f1a4cbc5f8e22
parent6fad42103c0c812d5b5f4b42854fd7fd68846487
ctdb-tests: Process-exists unit tests should wait until PID is registered

Otherwise the client registration can race with the check in the test.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13097

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu Oct 26 13:32:24 CEST 2017 on sn-devel-144
ctdb/tests/tool/ctdb.process-exists.001.sh
ctdb/tests/tool/ctdb.process-exists.002.sh
ctdb/tests/tool/ctdb.process-exists.003.sh