summaryrefslogtreecommitdiffstats
path: root/tests/basic/volume.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/volume.t')
-rwxr-xr-xtests/basic/volume.t18
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/basic/volume.t b/tests/basic/volume.t
index de3f001e09c..8491164ceff 100755
--- a/tests/basic/volume.t
+++ b/tests/basic/volume.t
@@ -1,6 +1,7 @@
#!/bin/bash
. $(dirname $0)/../include.rc
+. $(dirname $0)/../volume.rc
cleanup;
@@ -11,23 +12,6 @@ TEST $CLI volume info;
TEST $CLI volume create $V0 replica 2 stripe 2 $H0:$B0/${V0}{1,2,3,4,5,6,7,8};
-function volinfo_field()
-{
- local vol=$1;
- local field=$2;
-
- $CLI volume info $vol | grep "^$field: " | sed 's/.*: //';
-}
-
-
-function brick_count()
-{
- local vol=$1;
-
- $CLI volume info $vol | egrep "^Brick[0-9]+: " | wc -l;
-}
-
-
EXPECT "$V0" volinfo_field $V0 'Volume Name';
EXPECT 'Created' volinfo_field $V0 'Status';
EXPECT '8' brick_count $V0