summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 741d2b81c15..59a66142e9e 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -402,13 +402,12 @@ function delete_volumes() {
}
function volume_exists() {
- local volname=$1
- $CLI volume info $volname 2>&1 | grep -q 'does not exist'
- if [ $? -eq 0 ]; then
- return 1
- else
- return 0
- fi
+ $CLI volume info $1 > /dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ echo "Y"
+ else
+ echo "N"
+ fi
}
function afr_get_index_count {