]> git.proxmox.com Git - mirror_zfs.git/commitdiff
ZTS: acl group path cleanup
authorbunder2015 <omfgbunder@gmail.com>
Mon, 13 Aug 2018 15:22:41 +0000 (11:22 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 13 Aug 2018 15:22:41 +0000 (08:22 -0700)
Removing hardcoded paths in acl group tests

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: bunder2015 <omfgbunder@gmail.com>
Closes #7777

tests/zfs-tests/tests/functional/acl/acl.cfg
tests/zfs-tests/tests/functional/acl/acl_common.kshlib
tests/zfs-tests/tests/functional/acl/posix/posix_003_pos.ksh

index fbebe388417be74a80ea44b1041ebe5962463140..8fa85d673bb7bf1b1b6663c847f257f7ddef9d2f 100644 (file)
@@ -26,7 +26,7 @@
 
 . $STF_SUITE/include/libtest.shlib
 
-export NISSTAFILE=/var/tmp/nis_state
+export NISSTAFILE=$TEST_BASE_DIR/nis_state
 export TESTFILE=testfile$$
 export TESTFILE0=testfile0.$$
 export TESTFILE2=testfile2.$$
index 0fe6d2b6a69e23e26b343ff5544823befd84697e..a81cd76ba6aa6bb20b5dbd73f96474782f828a70 100644 (file)
@@ -92,8 +92,8 @@ function compare_acls #<src> <tgt>
        (( ${#src} == 0 || ${#tgt} == 0 )) && return 1
        [[ $src == $tgt ]] && return 0
 
-       typeset tmpsrc=/tmp/compare_acls.src.$$
-       typeset tmptgt=/tmp/compare_acls.tgt.$$
+       typeset tmpsrc=$TEST_BASE_DIR/compare_acls.src.$$
+       typeset tmptgt=$TEST_BASE_DIR/compare_acls.tgt.$$
 
        get_acl $src > $tmpsrc
        get_acl $tgt > $tmptgt
@@ -160,8 +160,8 @@ function compare_xattrs #<src> <tgt>
        (( ${#src} == 0 || ${#tgt} == 0 )) && return 1
        [[ $src == $tgt ]] && return 0
 
-       typeset tmpsrc=/tmp/compare_xattrs.src.$$
-       typeset tmptgt=/tmp/compare_xattrs.tgt.$$
+       typeset tmpsrc=$TEST_BASE_DIR/compare_xattrs.src.$$
+       typeset tmptgt=$TEST_BASE_DIR/compare_xattrs.tgt.$$
 
        get_xattr $src > $tmpsrc
        get_xattr $tgt > $tmptgt
@@ -276,7 +276,7 @@ function get_ACE #<file or dir name> <specified number> <verbose|compact>
        typeset format=${3:-verbose}
        typeset -i next_num=-1
 
-        typeset tmpfile=/tmp/tmp_get_ACE.$$
+        typeset tmpfile=$TEST_BASE_DIR/tmp_get_ACE.$$
         typeset line=""
        typeset args
 
index c45b2ecd10c9567a2c0323e8fe22c43e5ceecd91..dc6ef0d2477d6ca480d2d815a0bf42dd3a76a37b 100755 (executable)
@@ -36,7 +36,6 @@
 verify_runnable "both"
 log_assert "Verify regular and default POSIX ACLs survive  remount"
 
-typeset output=/tmp/zfs-posixacl.$$
 typeset acl_str1="^group:$ZFS_ACL_STAFF_GROUP:-wx$"
 typeset acl_str2="^default:group:$ZFS_ACL_STAFF_GROUP:-wx$"
 typeset ACLDIR="$TESTDIR/dir.1"