aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/include/blkdev.shlib
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-01-16 16:26:26 -0500
committerBrian Behlendorf <[email protected]>2020-01-16 13:26:26 -0800
commit31712a7ea898bba33a104728b1d96b92d25e468c (patch)
tree6f95a0ce9c52a2402a67887f311caa59f0d2331d /tests/zfs-tests/include/blkdev.shlib
parentf12e42cccf31d6077f585a562d7e7ed3483291b1 (diff)
ZTS: Fix incorrect is_physical_device usage
This check isn't meant to be used for command substitution. Reviewed-by: John Kennedy <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9844
Diffstat (limited to 'tests/zfs-tests/include/blkdev.shlib')
-rw-r--r--tests/zfs-tests/include/blkdev.shlib2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/include/blkdev.shlib b/tests/zfs-tests/include/blkdev.shlib
index d87a52524..5a750bf1b 100644
--- a/tests/zfs-tests/include/blkdev.shlib
+++ b/tests/zfs-tests/include/blkdev.shlib
@@ -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