diff options
Diffstat (limited to 'tests/afr.rc')
-rw-r--r-- | tests/afr.rc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/afr.rc b/tests/afr.rc index 721f24545d5..2aae292314a 100644 --- a/tests/afr.rc +++ b/tests/afr.rc @@ -73,11 +73,10 @@ function is_file_heal_done { function count_sh_entries() { - val1=0 - for g in $(ls $1/.glusterfs/indices/xattrop) - do - val1=$(( val1 + 1 )) - done + ls $1/.glusterfs/indices/xattrop | grep -v "xattrop-" | wc -l +} - echo $val1; +function count_index_entries() +{ + ls $1/.glusterfs/indices/xattrop | wc -l } |