summaryrefslogtreecommitdiffstats
path: root/tests/afr.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/afr.rc')
-rw-r--r--tests/afr.rc12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/afr.rc b/tests/afr.rc
index 938f9c07ab2..50067274d89 100644
--- a/tests/afr.rc
+++ b/tests/afr.rc
@@ -73,11 +73,9 @@ function is_file_heal_done {
function count_sh_entries()
{
- val1=0
- for g in `ls $1/.glusterfs/indices/xattrop`
- do
- val1=$(( val1 + 1 ))
- done
-
- echo $val1;
+ ls $1/.glusterfs/indices/xattrop | grep -v "xattrop-" | wc -l
+}
+function count_index_entries()
+{
+ ls $1/.glusterfs/indices/xattrop | wc -l
}