ZTS: Fix incorrect is_physical_device usage
This check isn't meant to be used for command substitution. Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@ixsystems.com> Closes #9844
This commit is contained in:
parent
f12e42cccf
commit
31712a7ea8
|
@ -259,7 +259,7 @@ function get_device_dir #device
|
|||
{
|
||||
typeset device=$1
|
||||
|
||||
if ! is_freebsd && ! $(is_physical_device $device) ; then
|
||||
if ! is_freebsd && ! is_physical_device $device; then
|
||||
if [[ $device != "/" ]]; then
|
||||
device=${device%/*}
|
||||
fi
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This directory cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This directory cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ function cleanup
|
|||
|
||||
set -A datasets "$TESTPOOL" "$TESTPOOL2"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This case cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
DISK=${DISKS%% *}
|
||||
|
||||
if ! $(is_physical_device $DISK) ; then
|
||||
if ! is_physical_device $DISK; then
|
||||
log_unsupported "Only partitionable physical disks can be used"
|
||||
fi
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
verify_runnable "global"
|
||||
verify_disk_count "$DISKS" 2
|
||||
|
||||
if ! $(is_physical_device $ZFS_DISK1) ; then
|
||||
if ! is_physical_device $ZFS_DISK1; then
|
||||
log_unsupported "Only partitionable physical disks can be used"
|
||||
fi
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This directory cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This directory cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This directory cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This directory cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This directory cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $DISKS) ; then
|
||||
if ! is_physical_device $DISKS; then
|
||||
log_unsupported "This directory cannot be run on raw files."
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue