1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Test suite: make time logging only happen on a real cluster, not local daemons.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit a6b3a7b7db9aa5fc971aae11b9b012e72c7d240c)
This commit is contained in:
Martin Schwenke 2010-08-31 17:28:00 +10:00
parent bb32a6cf70
commit 4f4cf7b100

View File

@ -31,6 +31,8 @@ onnode all onnode all true
# We're seeing some weirdness with CTDB controls timing out. We're
# wondering if time is jumping forward, so this creates a time log on
# each node that we can examine later if tests fail weirdly.
echo "Starting time logging on each node..."
f="/var/log/ctdb.test.time.log"
onnode -p all "[ -f $f ] || while : ; do date '+%T.%N' ; sleep 1 ; done >$f 2>&1 </dev/null &" &
if [ -n "$CTDB_TEST_REAL_CLUSTER" ] ; then
echo "Starting time logging on each node..."
f="/var/log/ctdb.test.time.log"
onnode -p all "[ -f $f ] || while : ; do date '+%T.%N' ; sleep 1 ; done >$f 2>&1 </dev/null &" &
fi