diff options
Diffstat (limited to 'tests/volume.rc')
-rw-r--r-- | tests/volume.rc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index bc768c9434f..3924baeb7fc 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -992,3 +992,11 @@ function get-xml() { $CLI $1 --xml | xmllint --format - | grep $2 | sed 's/\(<"$2">\|<\/"$2">\)//g' } + +function logging_time_check() +{ + local logdir=$1 + local logfile=`echo ${0##*/}`_glusterd1.log + + cat $logdir/1/$logfile | tail -n 2 | head -n 1 | grep $(date +%H:%M) | wc -l +}
\ No newline at end of file |