mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-14 23:40:58 +00:00
Fixed the Table Cache bugs.
Also makes t/lib/bash/collect_system_info.sh actually call setup_commands.
This commit is contained in:
@@ -21,6 +21,8 @@ mkdir "$p"
|
||||
|
||||
parse_options "$BIN_DIR/pt-summary" --sleep 1
|
||||
|
||||
setup_commands
|
||||
|
||||
collect_system_data "$p"
|
||||
|
||||
cat <<EOF > "$TMPDIR/expected"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plan 17
|
||||
plan 19
|
||||
|
||||
. "$LIB_DIR/report_formatting.sh"
|
||||
|
||||
@@ -90,6 +90,20 @@ is \
|
||||
is $(fuzz 11) "10" "fuzz 11"
|
||||
is $(fuzz 49) "50" "fuzz 49"
|
||||
|
||||
# fuzzy_pct
|
||||
|
||||
is \
|
||||
"$( fuzzy_pct 28 64 )" \
|
||||
"45%" \
|
||||
"fuzzy_pct of 64 and 28 is 45"
|
||||
|
||||
|
||||
is \
|
||||
"$( fuzzy_pct 40 400 )" \
|
||||
"10%" \
|
||||
"fuzzy_pct of 40 and 400 is 10"
|
||||
|
||||
|
||||
# ###########################################################################
|
||||
# Done
|
||||
# ###########################################################################
|
||||
|
@@ -26,4 +26,3 @@ is \
|
||||
"$(get_var "test::1" "$p")" \
|
||||
"abcdef" \
|
||||
"get_var works if the 'key' has colons"
|
||||
|
||||
|
Reference in New Issue
Block a user