pt-summary shouldn't leave empty files; both summary tools should

die if passed a --save-samples directory that has files in it.
This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-03-29 19:21:32 -03:00
parent 9fbb796022
commit 996a76a68e
12 changed files with 249 additions and 24 deletions

View File

@@ -183,6 +183,20 @@ cmd_ok() {
result $? "$test_name"
}
dies_ok() {
local test_command=$1
local test_name=${2:-""}
local result=1
(
eval $test_command
) 2>/dev/null &
wait $!
[ $? ] && result=0
result $result "$test_name"
}
# ############################################################################
# Script starts here
# ############################################################################