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:
parent
146bfb2417
commit
d4345220cc
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user