summaryrefslogtreecommitdiffstats
path: root/tests/changelog.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/changelog.rc')
-rw-r--r--tests/changelog.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/changelog.rc b/tests/changelog.rc
index e3b040226ec..ffad2e80632 100644
--- a/tests/changelog.rc
+++ b/tests/changelog.rc
@@ -2,3 +2,8 @@
function count_htime_files {
ls -l $B0/$V0"1"/.glusterfs/changelogs/htime/ | grep HTIME | wc -l
}
+
+function count_changelog_files {
+ # Where $1 is the brick name passed
+ ls -l $1/.glusterfs/changelogs/ | grep CHANGELOG | wc -l
+}