]> git.proxmox.com Git - mirror_zfs.git/commitdiff
OpenZFS 8965 - zfs_acl_ls_001_pos fails due to no longer supported grep regex
authorJohn Wren Kennedy <john.kennedy@delphix.com>
Wed, 31 Jan 2018 20:20:18 +0000 (13:20 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Feb 2018 05:29:17 +0000 (21:29 -0800)
The test used \> to detect the end of a string, but this no longer works,
so use $ which works as well since the string ends the line anyway.

Authored by: John Wren Kennedy <john.kennedy@delphix.com>
Reviewed by: Akash Ayare <aayare@delphix.com>
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed by: Yuri Pankov <yuripv@icloud.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/8965
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/cb1204e444
Closes #7145

tests/zfs-tests/tests/functional/acl/acl_common.kshlib

index 75bb824559c095098bd2f2713ea4e95c95c4c473..0fe6d2b6a69e23e26b343ff5544823befd84697e 100644 (file)
@@ -25,7 +25,7 @@
 #
 
 #
-# Copyright (c) 2016 by Delphix. All rights reserved.
+# Copyright (c) 2016, 2018 by Delphix. All rights reserved.
 #
 
 . $STF_SUITE/tests/functional/acl/acl.cfg
@@ -185,7 +185,7 @@ function plus_sign_check_l #<obj>
                return 1
        fi
 
-       ls -ld $obj | awk '{print $1}' | grep "+\>" > /dev/null
+       ls -ld $obj | awk '{print $1}' | grep "+$" > /dev/null
 
         return $?
 }
@@ -202,7 +202,7 @@ function plus_sign_check_v #<obj>
                return 1
        fi
 
-       ls -vd $obj | nawk '(NR == 1) {print $1}' | grep "+\>" > /dev/null
+       ls -vd $obj | awk '(NR == 1) {print $1}' | grep "+$" > /dev/null
 
         return $?
 }