ctdb-tests: Remove old socket wrapper state directory during setup
authorMartin Schwenke <martin@meltin.net>
Sat, 11 May 2019 21:52:13 +0000 (07:52 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 13 May 2019 08:42:44 +0000 (08:42 +0000)
Otherwise, when looping tests for a long time, nodes are unable to
connect to each other.

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

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): Mon May 13 08:42:44 UTC 2019 on sn-devel-184

ctdb/tests/local_daemons.sh

index 8fbef1922b9671a2a801cc08ecf6bfd881bc17e3..58a762b426d0ee892c804d8a9661239e27fc8555 100755 (executable)
@@ -119,6 +119,7 @@ setup_socket_wrapper ()
        ln -s "$_socket_wrapper_so" "$_so"
 
        _d="${directory}/sw"
+       rm -rf "$_d"
        mkdir -p "$_d"
 }