[Python-checkins] r42500 - python/trunk/Misc/build.sh

neal.norwitz python-checkins at python.org
Sun Feb 19 19:48:19 CET 2006


Author: neal.norwitz
Date: Sun Feb 19 19:48:19 2006
New Revision: 42500

Modified:
   python/trunk/Misc/build.sh
Log:
Ignore the tests which report leaks sporadically.
This should cause few enough spurious warnings to send to python-checkins now.

If a test leaks that is not in the ignore list (LEAKY_TESTS), all tests
which leak will be reported.  This includes those in the ignore list.
Hopefully that will prompt someone to fix the flakiness.


Modified: python/trunk/Misc/build.sh
==============================================================================
--- python/trunk/Misc/build.sh	(original)
+++ python/trunk/Misc/build.sh	Sun Feb 19 19:48:19 2006
@@ -45,9 +45,8 @@
 ## Configurable options
 
 FAILURE_SUBJECT="Python Regression Test Failures"
-#FAILURE_MAILTO="python-checkins at python.org"
 #FAILURE_MAILTO="YOUR_ACCOUNT at gmail.com"
-FAILURE_MAILTO="nnorwitz at gmail.com"
+FAILURE_MAILTO="python-checkins at python.org"
 
 REMOTE_SYSTEM="neal at dinsdale.python.org"
 REMOTE_DIR="/data/ftp.python.org/pub/docs.python.org/dev/"
@@ -56,6 +55,12 @@
 RSYNC_OPTS="-aC -e ssh"
 
 REFLOG="build/reflog.txt.out"
+# These tests are not stable and sometimes report leaks; however,
+# test_generators really leaks.  Since test_generators probably won't
+# be fixed real soon, disable warning about it for now.
+# The entire leak report will be mailed if any test not in this list leaks.
+LEAKY_TESTS="test_(capi|cfgparser|charmapcodec|cmd_line|compiler|filecmp|generators|threaded_import|threadedtempfile|threading|thraeading_local|urllib2)"
+
 # Change this flag to "yes" for old releases to just update/build the docs.
 BUILD_DISABLED="no"
 
@@ -155,7 +160,7 @@
             F=make-test-refleak.out
             start=`current_time`
             ./python ./Lib/test/regrtest.py -R 4:3:$REFLOG -u network >& build/$F
-            NUM_FAILURES=`grep -ic leak $REFLOG`
+            NUM_FAILURES=`egrep -vc "$LEAKY_TESTS" $REFLOG`
             update_status "Testing refleaks ($NUM_FAILURES failures)" "$F" $start
             mail_on_failure "refleak" $REFLOG
 


More information about the Python-checkins mailing list