Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

*** 22,45 **** # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ! # Copyright (c) 2013 by Delphix. All rights reserved. # . $STF_SUITE/include/libtest.shlib ! ZFS_USER=$($CAT /tmp/zfs-xattr-test-user.txt) ! $RM /tmp/zfs-xattr-test-user.txt ! USES_NIS=$($CAT /tmp/zfs-xattr-test-nis.txt) ! $RM /tmp/zfs-xattr-test-nis.txt del_user $ZFS_USER if [ "${USES_NIS}" == "true" ] then ! $SVCADM enable svc:/network/nis/client:default fi default_cleanup --- 22,45 ---- # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ! # Copyright (c) 2013, 2016 by Delphix. All rights reserved. # . $STF_SUITE/include/libtest.shlib ! ZFS_USER=$(cat /tmp/zfs-xattr-test-user.txt) ! rm /tmp/zfs-xattr-test-user.txt ! USES_NIS=$(cat /tmp/zfs-xattr-test-nis.txt) ! rm /tmp/zfs-xattr-test-nis.txt del_user $ZFS_USER if [ "${USES_NIS}" == "true" ] then ! svcadm enable svc:/network/nis/client:default fi default_cleanup