summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2015-03-05 13:10:32 +1100
committerMartin Schwenke <martins@samba.org>2015-03-05 04:46:06 +0100
commit956e51707d7ddcff060352f54d11ff42bdcc51ef (patch)
tree50c16b1223f59bb3268e1a0308b53902044a113e /ctdb
parent15a702accf0dd011a26895edd265ded547b829ef (diff)
downloadsamba-956e51707d7ddcff060352f54d11ff42bdcc51ef.tar.gz
ctdb-scripts: Add a 'rm' stub so statd-callout tests work correctly
statd-callout tries to remove global files from /var/lib/nfs/statd and this causes errors in tests. Add an rm stub that ignores attempts to remove these files but invokes /bin/rm for anything else. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-programmed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/eventscripts/stubs/rm6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/tests/eventscripts/stubs/rm b/ctdb/tests/eventscripts/stubs/rm
new file mode 100755
index 00000000000..64b4d186b65
--- /dev/null
+++ b/ctdb/tests/eventscripts/stubs/rm
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Make statd-callout happy
+case "$*" in
+ */var/lib/nfs/statd/sm*) : ;;
+ *) exec /bin/rm "$@" ;;
+esac