# HG changeset patch # User David Scott # Date 1263553350 0 # Node ID d59dad900ef5a7537b5bdf70b7fe029f1d84624c # Parent c841e1642ae566aaa78f46ad2cadf6c704feafb8 Fix an HA test script: this failed when there was only a single host in the pool. Signed-off-by: David Scott diff -r c841e1642ae5 -r d59dad900ef5 scripts/test-ha-sr2 --- a/scripts/test-ha-sr2 Fri Jan 15 10:59:05 2010 +0000 +++ b/scripts/test-ha-sr2 Fri Jan 15 11:02:30 2010 +0000 @@ -11,7 +11,8 @@ local rule=$1 for((retry=1;retry<120;retry++)); do finished=1 - IFS=","; for x in $(xe host-list params=ha-statefiles --minimal); do + IFS=","; for host in $(xe host-list params=uuid --minimal); do + x=$(xe host-param-get uuid=${host} param-name=ha-statefiles) if [ ${rule} -eq 2 ]; then if [ -n "${x}" ]; then # Someone has statefile access -> not SR 2