zfs-tests: fix warnings when packaging some .shlib files

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
This commit is contained in:
loli10K 2019-05-24 23:12:14 +02:00 committed by Brian Behlendorf
parent d28b492ab3
commit fe609530f2
3 changed files with 2 additions and 1 deletions

View File

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

0
tests/zfs-tests/include/zpool_script.shlib Executable file → Normal file
View File