mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
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:
@@ -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
|
||||
# ############################################################################
|
||||
|
Reference in New Issue
Block a user