Merge pull request #13257 from tchaikov/wip-less-verbose-ceph-helper

tests: ceph-helpers.sh reduce get_timeout_delays() verbosity

Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
Kefu Chai 2017-02-04 20:15:34 +08:00 committed by GitHub
commit 6cd8098a61

View File

@ -1085,8 +1085,8 @@ function test_is_clean() {
# @return a list of sleep delays
#
function get_timeout_delays() {
local saved_state=$(set +o)
set +x
local trace=$(shopt -q -o xtrace && echo true || echo false)
$trace && shopt -u -o xtrace
local timeout=$1
local first_step=${2:-1}
@ -1101,7 +1101,7 @@ function get_timeout_delays() {
if test "$(echo $total \< $timeout | bc -l)" = "1"; then
echo -n $(echo $timeout - $total | bc -l)
fi
eval "$saved_state"
$trace && shopt -s -o xtrace
}
function test_get_timeout_delays() {