diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/zfs-tests.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/zfs-tests.sh b/scripts/zfs-tests.sh index ca680953e..e1e114128 100755 --- a/scripts/zfs-tests.sh +++ b/scripts/zfs-tests.sh @@ -239,8 +239,11 @@ create_links() { constrain_path() { . "$STF_SUITE/include/commands.cfg" - SYSTEM_DIRS="/bin /sbin /usr/bin /usr/sbin" - SYSTEM_DIRS+=" /usr/local/bin /usr/local/sbin" + # On FreeBSD, base system zfs utils are in /sbin and OpenZFS utils + # install to /usr/local/sbin. To avoid testing the wrong utils we + # need /usr/local to come before / in the path search order. + SYSTEM_DIRS="/usr/local/bin /usr/local/sbin" + SYSTEM_DIRS+=" /usr/bin /usr/sbin /bin /sbin" if [ "$INTREE" = "yes" ]; then # Constrained path set to ./zfs/bin/ |