diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
commit | 4f5791ebd03eaec1c7da0865a383175b05102712 (patch) | |
tree | 8ce7b00f7a76baa386372422adebbe64510812d4 /ctdb/tests/scripts/cluster.bash | |
parent | Initial commit. (diff) | |
download | samba-4f5791ebd03eaec1c7da0865a383175b05102712.tar.xz samba-4f5791ebd03eaec1c7da0865a383175b05102712.zip |
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ctdb/tests/scripts/cluster.bash')
-rwxr-xr-x | ctdb/tests/scripts/cluster.bash | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ctdb/tests/scripts/cluster.bash b/ctdb/tests/scripts/cluster.bash new file mode 100755 index 0000000..916fc84 --- /dev/null +++ b/ctdb/tests/scripts/cluster.bash @@ -0,0 +1,18 @@ +# Hey Emacs, this is a -*- shell-script -*- !!! :-) + +. "${TEST_SCRIPTS_DIR}/integration.bash" + +if ! ctdb_test_on_cluster ; then + # Do not run on local daemons + ctdb_test_error \ + "ERROR: This test must be run against a real/virtual cluster" +fi + +h=$(hostname) + +for i in $(onnode -q all hostname) ; do + if [ "$h" = "$i" ] ; then + ctdb_test_error \ + "ERROR: This test must not be run from a cluster node" + fi +done |