Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eaf5491

Browse files
committed
testing: remove previous test images, preventing upload of removed tests
svn path=/trunk/matplotlib/; revision=7673
1 parent 0694123 commit eaf5491

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

test/_buildbot_mac_sage.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ export PYTHONPATH=${PREFIX}/lib/python2.6/site-packages:${HOME}/dev/lib/python2.
1111
make -f make.osx mpl_install
1212
echo ${PYTHONPATH}
1313

14-
cd test && python run-mpl-test.py --verbose --all --keep-failed
14+
cd test
15+
rm -f failed-diff-*.png
16+
python run-mpl-test.py --verbose --all --keep-failed

test/_buildbot_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""This script will install matplotlib to a virtual environment to
22
faciltate testing."""
3-
import shutil, os, sys
3+
import shutil, os, sys, glob
44
from subprocess import Popen, PIPE, STDOUT
55

66
from _buildbot_util import check_call
@@ -13,5 +13,10 @@
1313
TARGET_py = os.path.join(TARGET,'bin','python')
1414
check_call('%s -c "import shutil,matplotlib; x=matplotlib.get_configdir(); shutil.rmtree(x)"'%TARGET_py)
1515

16+
17+
previous_test_images = glob.glob(os.path.join('test','failed-diff-*.png'))
18+
for fname in previous_test_images:
19+
os.unlink(fname)
20+
1621
check_call('%s run-mpl-test.py --verbose --all --keep-failed'%TARGET_py,
1722
cwd='test')

0 commit comments

Comments
 (0)