[CalendarServer-changes] [9172] CalendarServer/trunk/test
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 23 15:45:24 PDT 2012
Revision: 9172
http://trac.macosforge.org/projects/calendarserver/changeset/9172
Author: wsanchez at apple.com
Date: 2012-04-23 15:45:24 -0700 (Mon, 23 Apr 2012)
Log Message:
-----------
Add check for empty files.
Modified Paths:
--------------
CalendarServer/trunk/test
Modified: CalendarServer/trunk/test
===================================================================
--- CalendarServer/trunk/test 2012-04-23 22:41:06 UTC (rev 9171)
+++ CalendarServer/trunk/test 2012-04-23 22:45:24 UTC (rev 9172)
@@ -83,11 +83,10 @@
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")";
-
if ${flaky}; then
echo "";
echo "Running pyflakes...";
+ tmp="$(mktemp "/tmp/calendarserver_test_flakes.XXXXX")";
cd "${wd}" && ./pyflakes ${test_modules} | tee "${tmp}" 2>&1;
if [ -s "${tmp}" ]; then
echo "**** Pyflakes says you have some code to clean up. ****";
@@ -95,3 +94,12 @@
fi;
rm -f "${tmp}";
fi;
+
+tmp="$(mktemp "/tmp/calendarserver_test_emtpy.XXXXX")";
+find "${wd}" ! '(' -type d '(' -name .svn -o -name data ')' -prune ')' -type f -size 0 > "${tmp}";
+if [ -s "${tmp}" ]; then
+ echo "**** Empty files: ****";
+ cat "${tmp}";
+ exit 1;
+fi;
+rm -f "${tmp}";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120423/2570546d/attachment.html>
More information about the calendarserver-changes
mailing list