diff options
Diffstat (limited to 'functest/opnfv_tests/openstack/cinder/write_data.sh')
-rw-r--r-- | functest/opnfv_tests/openstack/cinder/write_data.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/cinder/write_data.sh b/functest/opnfv_tests/openstack/cinder/write_data.sh index 16cea17bf..6689309b9 100644 --- a/functest/opnfv_tests/openstack/cinder/write_data.sh +++ b/functest/opnfv_tests/openstack/cinder/write_data.sh @@ -14,7 +14,7 @@ echo "VOL_DEV_NAME: $VOL_DEV_NAME" echo "$(lsblk -l -o NAME)" -if [ ! -z $VOL_DEV_NAME ]; then +if [ ! -z $(lsblk -l -o NAME | grep $VOL_DEV_NAME) ]; then sudo /usr/sbin/mkfs.ext4 -F /dev/$VOL_DEV_NAME sudo mount /dev/$VOL_DEV_NAME $DEST sudo touch $DEST/new_data |