ctdb-tests: Remove statd-callout when running NFS tests
authorMartin Schwenke <martin@meltin.net>
Wed, 8 Jul 2015 05:01:11 +0000 (15:01 +1000)
committerMartin Schwenke <martins@samba.org>
Thu, 9 Jul 2015 07:27:02 +0000 (09:27 +0200)
60.nfs backgrounds it so it persists in the background causing
problems.  In particular, it causes the "ctdb ip" command stub to be
run in parallel, which produces inconstent results.

Better not to run it at all in the NFS tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Jul  9 09:27:02 CEST 2015 on sn-devel-104

ctdb/tests/eventscripts/scripts/local.sh

index ae313a75607acc19949f94a442c87258ee04cd89..60483231a1f29f61efcbdd4d7a1c5044a32afb74 100644 (file)
@@ -814,6 +814,13 @@ setup_nfs ()
        export CTDB_MANAGED_SERVICES="foo bar"
        unset CTDB_MANAGES_NFS
     fi
+
+    # This is really nasty.  However, when we test NFS we don't
+    # actually test statd-callout. If we leave it there then left
+    # over, backgrounded instances of statd-callout will do horrible
+    # things with the "ctdb ip" stub and cause the actual
+    # statd-callout tests that follow to fail.
+    rm "${CTDB_BASE}/statd-callout"
 }
 
 setup_nfs_ganesha ()