fix re pattern to accept the new recovery lock times in the statistics output
authorSumit Bose <sbose@redhat.com>
Thu, 21 May 2009 11:43:41 +0000 (13:43 +0200)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 25 May 2009 01:15:00 +0000 (11:15 +1000)
tests/simple/14_ctdb_statistics.sh

index 202e0a0ffba3bd9549ded4e4475ad7e4ed0fd1d5..d92cb41cd6c7764788c30856c108dd8d6724c9d1 100755 (executable)
@@ -33,14 +33,14 @@ set -e
 
 onnode 0 $CTDB_TEST_WRAPPER cluster_is_healthy
 
-pattern='^(CTDB version 1|Gathered statistics for [[:digit:]]+ nodes|[[:space:]]+[[:alpha:]_]+[[:space:]]+[[:digit:]]+|[[:space:]]+(node|client|timeouts)|[[:space:]]+[[:alpha:]_]+_latency[[:space:]]+[[:digit:]]+\.[[:digit:]]+[[:space:]]sec)$'
+pattern='^(CTDB version 1|Gathered statistics for [[:digit:]]+ nodes|[[:space:]]+[[:alpha:]_]+[[:space:]]+[[:digit:]]+|[[:space:]]+(node|client|timeouts)|[[:space:]]+([[:alpha:]_]+_latency|max_reclock_[[:alpha:]]+)[[:space:]]+[[:digit:]-]+\.[[:digit:]]+[[:space:]]sec)$'
 
 try_command_on_node -v 1 "$CTDB statistics"
 
-sanity_check_output 38 "$pattern" "$out"
+sanity_check_output 40 "$pattern" "$out"
 
 try_command_on_node -v 1 "$CTDB statistics -n all"
 
-sanity_check_output 38 "$pattern" "$out"
+sanity_check_output 40 "$pattern" "$out"
 
 ctdb_test_exit