diff --git a/tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap_003_pos.ksh b/tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap_003_pos.ksh index a6a562cbb..256ca5324 100755 --- a/tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap_003_pos.ksh +++ b/tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap_003_pos.ksh @@ -73,8 +73,8 @@ log_onexit cleanup voldev=${ZVOL_DEVDIR}/$TESTPOOL/$TESTVOL VFSTAB_FILE=/etc/vfstab -NEW_VFSTAB_FILE=/var/tmp/zvol_vfstab.$$ -PREV_VFSTAB_FILE=/var/tmp/zvol_vfstab.PREV.$$ +NEW_VFSTAB_FILE=$TEST_BASE_DIR/zvol_vfstab.$$ +PREV_VFSTAB_FILE=$TEST_BASE_DIR/zvol_vfstab.PREV.$$ [[ -f $NEW_VFSTAB_FILE ]] && cp /dev/null $NEW_VFSTAB_FILE