From: Martin Schwenke Date: Wed, 11 Sep 2019 06:07:49 +0000 (+1000) Subject: ctdb-tests: Update preamble for CLUSTER tests X-Git-Tag: talloc-2.3.1~493 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38138b42f7c42aca01dccd7b61784f0ddc2570f2;p=thirdparty%2Fsamba.git ctdb-tests: Update preamble for CLUSTER tests The main change is to source cluster.bash instead of integration.bash. While touching the preamble, the following additional changes are also made: * Drop test_info() definition and replace it with a comment The use of test_info() is pointless. * Drop call to ctdb_test_check_real_cluster() cluster.bash now does this. * Drop call to cluster_is_healthy() This is a holdover from when the previous test would restart daemons to get things ready for a test. There was also a bug where going into recovery during the restart would sometimes cause the cluster to become unhealthy. If we really need something like this then we can add it to ctdb_test_init(). Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh b/ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh index 543472c0f22..dba6d075c8d 100755 --- a/ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh +++ b/ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh @@ -1,24 +1,15 @@ #!/bin/bash -test_info() -{ - cat <