1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: avoid masking return values

Declare and assign separately to avoid masking return values.
This commit is contained in:
Zdenek Kabelac 2017-07-06 19:30:19 +02:00
parent 146bfb2417
commit d4345220cc
3 changed files with 6 additions and 3 deletions

View File

@ -28,7 +28,8 @@ mount_dir="mnt"
mount_space_dir="mnt space dir"
mount_dolar_dir="mnt \$SPACE dir"
# for recursive call
export LVM_BINARY=$(which lvm)
LVM_BINARY=$(which lvm)
export LVM_BINARY
test ! -d "$mount_dir" && mkdir "$mount_dir"
test ! -d "$mount_space_dir" && mkdir "$mount_space_dir"

View File

@ -45,7 +45,8 @@ dev_vg_lv2="$DM_DEV_DIR/$vg_lv2"
mount_dir="mnt"
mount_space_dir="mnt space dir"
# for recursive call
export LVM_BINARY=$(which lvm)
LVM_BINARY=$(which lvm)
export LVM_BINARY
test ! -d "$mount_dir" && mkdir "$mount_dir"
test ! -d "$mount_space_dir" && mkdir "$mount_space_dir"

View File

@ -21,7 +21,8 @@ SKIP_WITH_LVMPOLLD=1
FSCK=${FSCK-fsck}
MKFS=${MKFS-mkfs.ext3}
RESIZEFS=${RESIZEFS-resize2fs}
export LVM_BINARY=$(which lvm)
LVM_BINARY=$(which lvm)
export LVM_BINARY
which $FSCK || skip
which $MKFS || skip