فهرست منبع

Tests: Prevent executable images or html files during lint

Ben Wiederhake 8 ماه پیش
والد
کامیت
352acd7771
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Meta/lint-executable-resources.sh

+ 2 - 0
Meta/lint-executable-resources.sh

@@ -8,8 +8,10 @@ cd "$script_path/.."
 if [ "$(uname -s)" = "Darwin" ]; then
 if [ "$(uname -s)" = "Darwin" ]; then
     # MacOS's find does not support '-executable' OR '-perm /mode'.
     # MacOS's find does not support '-executable' OR '-perm /mode'.
     BAD_FILES=$(find Base/res/ -type f -perm +111)
     BAD_FILES=$(find Base/res/ -type f -perm +111)
+    BAD_FILES+=$(find Tests/ -name WPT -prune -or -perm +111 \! -type d -print | grep -Ev '\.(sh|py)$' || true)
 else
 else
     BAD_FILES=$(find Base/res/ -type f -executable)
     BAD_FILES=$(find Base/res/ -type f -executable)
+    BAD_FILES+=$(find Tests/ -name WPT -prune -or -executable \! -type d -print | grep -Ev '\.(sh|py)$' || true)
 fi
 fi
 
 
 if [ -n "${BAD_FILES}" ]
 if [ -n "${BAD_FILES}" ]