Skip to content

Commit

Permalink
Make pep8 test work on Mac
Browse files Browse the repository at this point in the history
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
  • Loading branch information
maoy committed Jul 10, 2012
1 parent ec3bcae commit 3b67447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit 3b67447

Please sign in to comment.