summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-19 18:48:19 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-19 18:48:19 (GMT)
commitf415d5f830e8af763b12ad2c89aa0578b2402e93 (patch)
treea84fdc1b1d15e2cd4fed447639e8627d40313fa2 /Misc
parentd69e0345717800826ee49d7234c48d333e75c2f0 (diff)
downloadcpython-f415d5f830e8af763b12ad2c89aa0578b2402e93.zip
cpython-f415d5f830e8af763b12ad2c89aa0578b2402e93.tar.gz
cpython-f415d5f830e8af763b12ad2c89aa0578b2402e93.tar.bz2
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.
Diffstat (limited to 'Misc')
-rwxr-xr-xMisc/build.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/Misc/build.sh b/Misc/build.sh
index a93941d..a1feac4 100755
--- a/Misc/build.sh
+++ b/Misc/build.sh
@@ -45,9 +45,8 @@ DIR=`dirname $DIR`
## Configurable options
FAILURE_SUBJECT="Python Regression Test Failures"
-#FAILURE_MAILTO="python-checkins@python.org"
#FAILURE_MAILTO="YOUR_ACCOUNT@gmail.com"
-FAILURE_MAILTO="nnorwitz@gmail.com"
+FAILURE_MAILTO="python-checkins@python.org"
REMOTE_SYSTEM="neal@dinsdale.python.org"
REMOTE_DIR="/data/ftp.python.org/pub/docs.python.org/dev/"
@@ -56,6 +55,12 @@ INSTALL_DIR="/tmp/python-test/local"
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 @@ if [ $err = 0 -a "$BUILD_DISABLED" != "yes" ]; then
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