summaryrefslogtreecommitdiffstats
path: root/tests/geo-rep.rc
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2020-04-24 15:17:12 +0100
committerSunny Kumar <sunkumar@redhat.com>2020-05-02 11:24:39 +0100
commitc8d733c3ed39f297d0f56052c6dc4d02aecdbc4d (patch)
tree79a023fab10a93b56f5e7c3488c7d989601cdcec /tests/geo-rep.rc
parent11ea746d0813e9599c2c8d0c36fcd7be5d25ac65 (diff)
test: improve geo-rep non root test
Make sure bricks are up before mounting volume. Also made sure that mount is available before creating test data. Change-Id: I4915b837df46e43be5678dac8ae5602021c52685 Updates: #1197 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'tests/geo-rep.rc')
-rw-r--r--tests/geo-rep.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/geo-rep.rc b/tests/geo-rep.rc
index 84c2c2251c0..9ba4262730e 100644
--- a/tests/geo-rep.rc
+++ b/tests/geo-rep.rc
@@ -1,4 +1,9 @@
GEO_REP_TIMEOUT=120
+CHECK_MOUNT_TIMEOUT=50
+#check for mount point
+function check_mounted () {
+ df | grep $1 | wc -l
+}
function check_status_num_rows()
{