summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/onnode/stubs/ctdb
blob: cca34c57e47acbc618e6d37ddb15822de3fe1872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# Fake ctdb client for onnode tests.

out="${CTDB_TEST_TMP_DIR}/ctdb.out"
if [ -r "$out" ] ; then
    cat "$out"

    rc="${CTDB_TEST_TMP_DIR}/ctdb.rc"
    if [ -r "$rc" ] ; then
	exit $(cat "$rc")
    fi

    exit 0
fi

echo "fake ctdb: no implementation for \"$*\""

exit 1