mirror of
https://github.com/ceph/ceph
synced 2025-04-01 00:26:47 +00:00
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:
commit
6cd8098a61
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user