[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Mon Aug 1 15:54:03 UTC 2016


The branch, master has been updated
       via  19ed816 ctdb-tests: Stop cross-talk between reclock tests
      from  5462a1e VERSION: Bump version up to 4.6.0pre1

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 19ed8165bbe374e1ea277fd4dd5a65ee932b4f05
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 1 14:07:04 2016 +1000

    ctdb-tests: Stop cross-talk between reclock tests
    
    On a busy system the backgrounded counter reset can survive into the
    next test and interfere with its result.
    
    To avoid this, wait until all forks of 01.reclock exit before
    continuing on to the next test.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    
    Autobuild-User(master): Volker Lendecke <vl at samba.org>
    Autobuild-Date(master): Mon Aug  1 17:53:27 CEST 2016 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 ctdb/tests/eventscripts/scripts/local.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)


Changeset truncated at 500 lines:

diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh
index 7f6c91d..61a033a 100644
--- a/ctdb/tests/eventscripts/scripts/local.sh
+++ b/ctdb/tests/eventscripts/scripts/local.sh
@@ -1132,10 +1132,21 @@ program $_rpc_service${_ver:+ version }${_ver} is not available"
 
 # Recovery lock fakery
 
+cleanup_reclock ()
+{
+	_pattern="${script_dir}/${script}"
+	while pgrep -f "$_pattern" >/dev/null ; do
+		echo "Waiting for backgrounded ${script} to exit..."
+		(FAKE_SLEEP_REALLY=yes sleep 1)
+	done
+}
+
 setup_reclock ()
 {
 	CTDB_RECOVERY_LOCK=$(mktemp --tmpdir="$EVENTSCRIPTS_TESTS_VAR_DIR")
 	export CTDB_RECOVERY_LOCK
+
+	test_cleanup cleanup_reclock
 }
 
 ######################################################################


-- 
Samba Shared Repository



More information about the samba-cvs mailing list