[CalendarServer-changes] [7658] CalendarServer/trunk/test

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 24 14:26:03 PDT 2011


Revision: 7658
          http://trac.macosforge.org/projects/calendarserver/changeset/7658
Author:   wsanchez at apple.com
Date:     2011-06-24 14:26:03 -0700 (Fri, 24 Jun 2011)
Log Message:
-----------
Run pyflakes as part of tests

Modified Paths:
--------------
    CalendarServer/trunk/test

Modified: CalendarServer/trunk/test
===================================================================
--- CalendarServer/trunk/test	2011-06-24 21:25:43 UTC (rev 7657)
+++ CalendarServer/trunk/test	2011-06-24 21:26:03 UTC (rev 7658)
@@ -71,12 +71,23 @@
 trial="$(type -p trial)";
 
 if [ $# -gt 0 ]; then
-    test_modules="$@";
+  test_modules="$@";
 else
-    test_modules="calendarserver twistedcaldav twext txdav ${m_twisted}";
+  test_modules="calendarserver twistedcaldav twext txdav ${m_twisted}";
 fi;
 
 find "${wd}" -name \*.pyc -print0 | xargs -0 rm;
 
 mkdir -p "${wd}/data";
 cd "${wd}" && "${python}" "${trial}" --temp-directory="${wd}/data/trial" --rterrors ${random} ${until_fail} ${no_colour} ${coverage} ${test_modules};
+
+tmp="$(mktemp "/tmp/calendarserver_test.XXXXX")";
+
+echo "";
+echo "Running pyflakes...";
+cd "${wd}" && ./pyflakes . | tee "${tmp}" 2>&1;
+if [ -s "${tmp}" ]; then
+  echo "**** Pyflakes says you have some code to clean up. ****";
+  exit 1;
+fi;
+rm -f "${tmp}";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110624/68e82bae/attachment-0001.html>


More information about the calendarserver-changes mailing list