diff options
Diffstat (limited to 'tests/support')
-rw-r--r-- | tests/support/util.tcl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/support/util.tcl b/tests/support/util.tcl index a7972a854..6741b719a 100644 --- a/tests/support/util.tcl +++ b/tests/support/util.tcl @@ -77,6 +77,12 @@ proc getInfoProperty {infostr property} { } } +proc cluster_info {r field} { + if {[regexp "^$field:(.*?)\r\n" [$r cluster info] _ value]} { + set _ $value + } +} + # Return value for INFO property proc status {r property} { set _ [getInfoProperty [{*}$r info] $property] |