]> granicus.if.org Git - zfs/commitdiff
zfs-tests: fix warnings when packaging some .shlib files
authorloli10K <loli10K@users.noreply.github.com>
Fri, 24 May 2019 21:12:14 +0000 (23:12 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 May 2019 21:12:14 +0000 (14:12 -0700)
This change prevents the following warning when packaging some zfs-tests
files:

   *** WARNING: ./usr/src/zfs-0.8.0/tests/zfs-tests/include/zpool_script.shlib
   is executable but has empty or no shebang, removing executable bit

Reviewed by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8787

Makefile.am
tests/zfs-tests/include/zpool_script.shlib [changed mode: 0755->0644]
tests/zfs-tests/tests/functional/cli_root/zpool_reopen/zpool_reopen.shlib [changed mode: 0755->0644]

index b4416c7492fdf285eee8c74889bb7310ff120b1d..1ec2514922a9482fc9d1360d61a2fede894f5da4 100644 (file)
@@ -111,9 +111,10 @@ mancheck:
        fi
 
 testscheck:
-       @find ${top_srcdir}/tests/zfs-tests/tests -type f \
+       @find ${top_srcdir}/tests/zfs-tests -type f \
                \( -name '*.ksh' -not -executable \) -o \
                \( -name '*.kshlib' -executable \) -o \
+               \( -name '*.shlib' -executable \) -o \
                \( -name '*.cfg' -executable \) | \
                xargs -r stat -c '%A %n' | \
                awk '{c++; print} END {if(c>0) exit 1}'
old mode 100755 (executable)
new mode 100644 (file)