mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
Fix default log level in log_warn_die.sh.
This commit is contained in:
@@ -100,6 +100,7 @@ run_test() {
|
||||
result() {
|
||||
local result=$1
|
||||
local test_name=${2:-""}
|
||||
testno=$((testno + 1))
|
||||
if [ $result -eq 0 ]; then
|
||||
echo "ok $testno - $TEST_FILE $test_name"
|
||||
else
|
||||
@@ -110,7 +111,6 @@ result() {
|
||||
cat $TEST_PT_TMPDIR/failed_result | sed -e 's/^/# /' -e '30q' >&2
|
||||
fi
|
||||
fi
|
||||
testno=$((testno + 1))
|
||||
return $result
|
||||
}
|
||||
|
||||
@@ -121,6 +121,10 @@ plan() {
|
||||
fi
|
||||
}
|
||||
|
||||
done_testing() {
|
||||
echo "1..$testno"
|
||||
}
|
||||
|
||||
#
|
||||
# The following subs are for the test files to call.
|
||||
#
|
||||
@@ -260,7 +264,7 @@ diag() {
|
||||
# Script starts here
|
||||
# ############################################################################
|
||||
|
||||
testno=1
|
||||
testno=0
|
||||
failed_tests=0
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
Reference in New Issue
Block a user