mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
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>
This commit is contained in:
parent
15a702accf
commit
956e51707d
6
ctdb/tests/eventscripts/stubs/rm
Executable file
6
ctdb/tests/eventscripts/stubs/rm
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Make statd-callout happy
|
||||
case "$*" in
|
||||
*/var/lib/nfs/statd/sm*) : ;;
|
||||
*) exec /bin/rm "$@" ;;
|
||||
esac
|
Loading…
x
Reference in New Issue
Block a user