mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
pt-summary for 2.1, also changes to pt-mysql-summary from Daniel's review
This commit is contained in:
@@ -136,6 +136,16 @@ skip() {
|
||||
fi
|
||||
}
|
||||
|
||||
# TODO unperlify
|
||||
like() {
|
||||
local got="$1"
|
||||
local regex="$2"
|
||||
local test_name=${3:-""}
|
||||
test_command="$got =~ m<$regex>"
|
||||
perl -e 'exit(scalar($ARGV[0] =~ m<^$ARGV[1]>msi ? 0 : 1))' "$got" "$regex"
|
||||
result $? "$test_name"
|
||||
}
|
||||
|
||||
no_diff() {
|
||||
local got=$1
|
||||
local expected=$2
|
||||
|
Reference in New Issue
Block a user