diff options
Diffstat (limited to 'tests/volume.rc')
-rw-r--r-- | tests/volume.rc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc new file mode 100644 index 00000000000..55c96b3adc0 --- /dev/null +++ b/tests/volume.rc @@ -0,0 +1,22 @@ +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; +} + +function volume_option() +{ + local vol=$1 + local key=$2 + $CLI volume info $vol | egrep "^$key: " | cut -f2 -d' '; +} |