[CalendarServer-changes] [7699] CalendarServer/trunk/test
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 30 16:12:10 PDT 2011
Revision: 7699
http://trac.macosforge.org/projects/calendarserver/changeset/7699
Author: wsanchez at apple.com
Date: 2011-06-30 16:12:10 -0700 (Thu, 30 Jun 2011)
Log Message:
-----------
No pyflakes if you specify modules, cuz it's a pain
Modified Paths:
--------------
CalendarServer/trunk/test
Modified: CalendarServer/trunk/test
===================================================================
--- CalendarServer/trunk/test 2011-06-30 23:08:23 UTC (rev 7698)
+++ CalendarServer/trunk/test 2011-06-30 23:12:10 UTC (rev 7699)
@@ -72,8 +72,10 @@
if [ $# -gt 0 ]; then
test_modules="$@";
+ flaky=false;
else
test_modules="calendarserver twistedcaldav twext txdav contrib ${m_twisted}";
+ flaky=true;
fi;
find "${wd}" -name \*.pyc -print0 | xargs -0 rm;
@@ -83,11 +85,13 @@
tmp="$(mktemp "/tmp/calendarserver_test.XXXXX")";
-echo "";
-echo "Running pyflakes...";
-cd "${wd}" && ./pyflakes $(echo ${test_modules} | sed 's|\.|/|g' | sed 's|\([^.][^p][^y]\)$|\1.py|') | tee "${tmp}" 2>&1;
-if [ -s "${tmp}" ]; then
- echo "**** Pyflakes says you have some code to clean up. ****";
- exit 1;
+if ${flaky}; then
+ echo "";
+ echo "Running pyflakes...";
+ cd "${wd}" && ./pyflakes ${test_modules} | tee "${tmp}" 2>&1;
+ if [ -s "${tmp}" ]; then
+ echo "**** Pyflakes says you have some code to clean up. ****";
+ exit 1;
+ fi;
+ rm -f "${tmp}";
fi;
-rm -f "${tmp}";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110630/1001d553/attachment.html>
More information about the calendarserver-changes
mailing list