X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/6f8a32d5c71350afa1b64f2b77667e94b8e9773a..2bcd18a2e95ba1278e8ab4671a6987416800e36f:/tests/support/util.tcl diff --git a/tests/support/util.tcl b/tests/support/util.tcl index a39a2134..0131c411 100644 --- a/tests/support/util.tcl +++ b/tests/support/util.tcl @@ -30,12 +30,16 @@ proc zlistAlikeSort {a b} { proc warnings_from_file {filename} { set lines [split [exec cat $filename] "\n"] set matched 0 + set logall 0 set result {} foreach line $lines { + if {[string match {*REDIS BUG REPORT START*} $line]} { + set logall 1 + } if {[regexp {^\[\d+\]\s+\d+\s+\w+\s+\d{2}:\d{2}:\d{2} \#} $line]} { set matched 1 } - if {$matched} { + if {$logall || $matched} { lappend result $line } } @@ -294,3 +298,7 @@ proc csvdump r { proc csvstring s { return "\"$s\"" } + +proc roundFloat f { + format "%.10g" $f +}