mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Test suite: Print debug info on node status timeouts.
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a083a1976d621c76121f1fa2c2f484cfa47267bd)
This commit is contained in:
parent
a74ca1a1bb
commit
4948051bf4
@ -417,7 +417,15 @@ wait_until_node_has_status ()
|
||||
|
||||
echo "Waiting until node $pnn has status \"$status\"..."
|
||||
|
||||
onnode any $CTDB_TEST_WRAPPER wait_until $timeout node_has_status "$pnn" "$status"
|
||||
if ! onnode any $CTDB_TEST_WRAPPER wait_until $timeout node_has_status "$pnn" "$status" ; then
|
||||
for i in "onnode -q any ctdb status" "onnode -q any onnode all ctdb scriptstatus" ; do
|
||||
echo "$i"
|
||||
$i || true
|
||||
done
|
||||
|
||||
return 1
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# Useful for superficially testing IP failover.
|
||||
|
Loading…
x
Reference in New Issue
Block a user