From 3b6744786cf5337940f5c074062adca40497557e Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Tue, 10 Jul 2012 01:04:16 -0400 Subject: [PATCH] Make pep8 test work on Mac find . -executable is not available on Mac OS X. We switch back to the old -perm syntax to find files to test. Change-Id: Iea58a249f282c98ae6cffbe8e6359f70f8b1d63f --- run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index f61979e0da7..26f3fdda8bf 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -120,7 +120,7 @@ function run_pep8 { # NOTE(sirp): Dom0 plugins are written for Python 2.4, meaning some HACKING # checks are too strict. pep8onlyfiles=`find plugins -type f -name "*.py"` - pep8onlyfiles+=" `find plugins/xenserver/xenapi/etc/xapi.d/plugins/ -type f -executable`" + pep8onlyfiles+=" `find plugins/xenserver/xenapi/etc/xapi.d/plugins/ -type f -perm +111`" ${wrapper} pep8 ${pep8onlyfiles} }