summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index acd9f94b124..db93ce7a2fe 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -369,3 +369,8 @@ function landfill_entry_count {
local brick=$1
ls $brick/.glusterfs/landfill | wc -l
}
+
+function path_exists {
+ stat $1
+ if [ $? -eq 0 ]; then echo "Y"; else echo "N"; fi
+}