Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Run script only if volume device is found
[functest.git]
/
functest
/
opnfv_tests
/
openstack
/
cinder
/
read_data.sh
diff --git
a/functest/opnfv_tests/openstack/cinder/read_data.sh
b/functest/opnfv_tests/openstack/cinder/read_data.sh
index
e6ad57b
..
2c5fdd4
100644
(file)
--- a/
functest/opnfv_tests/openstack/cinder/read_data.sh
+++ b/
functest/opnfv_tests/openstack/cinder/read_data.sh
@@
-13,7
+13,7
@@
VOL_DEV_NAME=${1:-vdb}
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 mount /dev/$VOL_DEV_NAME $DEST
if [ -f $DEST/new_data ]; then
echo "Found new data!"