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

Skip to content

Commit b386a56

Browse files
committed
testing bugfix: buildbot postmortem uses new file locations from r7830
svn path=/trunk/matplotlib/; revision=7963
1 parent a5729a5 commit b386a56

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

test/_buildbot_test_postmortem.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,13 @@ def path_split_all(fname):
8181
# new matplotlib.testing infrastructure
8282

8383
os.chdir('test')
84-
for fname in glob.glob('*.png'):
85-
absdiff_fname = diff_basename + fname
86-
expected_fname = expected_basename + fname
84+
for fname in get_recursive_filelist(['result_images']):
85+
# only images
86+
if not fname.endswith('.png'): continue
87+
88+
result_dir, result_fname = os.path.split(fname)
89+
absdiff_fname = os.path.join( result_dir, diff_basename + result_fname)
90+
expected_fname = os.path.join( result_dir, expected_basename + result_fname)
8791
if not os.path.exists(absdiff_fname):
8892
continue
8993
if not os.path.exists(expected_fname):

0 commit comments

Comments
 (0)