diff options
-rwxr-xr-x | tests/zfs-tests/tests/functional/privilege/cleanup.ksh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/zfs-tests/tests/functional/privilege/cleanup.ksh b/tests/zfs-tests/tests/functional/privilege/cleanup.ksh index b7a1e419f..5d3ec7b85 100755 --- a/tests/zfs-tests/tests/functional/privilege/cleanup.ksh +++ b/tests/zfs-tests/tests/functional/privilege/cleanup.ksh @@ -31,9 +31,15 @@ . $STF_SUITE/include/libtest.shlib +if is_linux; then + log_unsupported "Privilege tests require pfexec command" +fi + verify_runnable "global" ZFS_USER=$(cat /tmp/zfs-privs-test-user.txt) +[[ -z $ZFS_USER ]] && log_fail "no ZFS_USER found" + USES_NIS=$(cat /tmp/zfs-privs-test-nis.txt) if [ "${USES_NIS}" == "true" ] |