diff options
Diffstat (limited to 'ctdb/tests/eventscripts/stubs/tdbtool')
-rwxr-xr-x | ctdb/tests/eventscripts/stubs/tdbtool | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ctdb/tests/eventscripts/stubs/tdbtool b/ctdb/tests/eventscripts/stubs/tdbtool new file mode 100755 index 00000000000..c6c0a166044 --- /dev/null +++ b/ctdb/tests/eventscripts/stubs/tdbtool @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ -z "$1" ] ; then + if [ "$FAKE_TDBTOOL_SUPPORTS_CHECK" = "yes" ] ; then + echo "check" + fi +fi + +if [ "$FAKE_TDB_IS_OK" = "yes" ] ; then + echo "Database integrity is OK" +else + echo "Database is busted" +fi + +exit 0 |