|
From: <as...@us...> - 2009-09-07 16:32:37
|
Revision: 7673
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7673&view=rev
Author: astraw
Date: 2009-09-07 16:32:28 +0000 (Mon, 07 Sep 2009)
Log Message:
-----------
testing: remove previous test images, preventing upload of removed tests
Modified Paths:
--------------
trunk/matplotlib/test/_buildbot_mac_sage.sh
trunk/matplotlib/test/_buildbot_test.py
Modified: trunk/matplotlib/test/_buildbot_mac_sage.sh
===================================================================
--- trunk/matplotlib/test/_buildbot_mac_sage.sh 2009-09-07 14:09:01 UTC (rev 7672)
+++ trunk/matplotlib/test/_buildbot_mac_sage.sh 2009-09-07 16:32:28 UTC (rev 7673)
@@ -11,4 +11,6 @@
make -f make.osx mpl_install
echo ${PYTHONPATH}
-cd test && python run-mpl-test.py --verbose --all --keep-failed
+cd test
+rm -f failed-diff-*.png
+python run-mpl-test.py --verbose --all --keep-failed
Modified: trunk/matplotlib/test/_buildbot_test.py
===================================================================
--- trunk/matplotlib/test/_buildbot_test.py 2009-09-07 14:09:01 UTC (rev 7672)
+++ trunk/matplotlib/test/_buildbot_test.py 2009-09-07 16:32:28 UTC (rev 7673)
@@ -1,6 +1,6 @@
"""This script will install matplotlib to a virtual environment to
faciltate testing."""
-import shutil, os, sys
+import shutil, os, sys, glob
from subprocess import Popen, PIPE, STDOUT
from _buildbot_util import check_call
@@ -13,5 +13,10 @@
TARGET_py = os.path.join(TARGET,'bin','python')
check_call('%s -c "import shutil,matplotlib; x=matplotlib.get_configdir(); shutil.rmtree(x)"'%TARGET_py)
+
+previous_test_images = glob.glob(os.path.join('test','failed-diff-*.png'))
+for fname in previous_test_images:
+ os.unlink(fname)
+
check_call('%s run-mpl-test.py --verbose --all --keep-failed'%TARGET_py,
cwd='test')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|