1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/60.nfs.monitor.108.sh
Martin Schwenke 3b32c64189 ctdb-tests: Add some simple tests for CTDB_NFS_CALLOUT
One always passes, the other fails early.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2015-07-14 09:57:18 +02:00

13 lines
213 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "callout is 'false', causes monitor-pre to fail"
setup_nfs
export CTDB_NFS_CALLOUT="echo monitor-pre ; false"
required_result 1 "monitor-pre"
simple_test