Fixed the Table Cache bugs.

Also makes t/lib/bash/collect_system_info.sh actually call setup_commands.
This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-03-28 15:29:57 -03:00
parent 4bb5968c23
commit 3ee8f9ba71
9 changed files with 29 additions and 14 deletions

View File

@@ -21,6 +21,8 @@ mkdir "$p"
parse_options "$BIN_DIR/pt-summary" --sleep 1
setup_commands
collect_system_data "$p"
cat <<EOF > "$TMPDIR/expected"

View File

@@ -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
# ###########################################################################

View File

@@ -26,4 +26,3 @@ is \
"$(get_var "test::1" "$p")" \
"abcdef" \
"get_var works if the 'key' has colons"