If there are any differences from a previous run, there will be
several additional image files left around, (.thumb.png, etc.). And we
don't want to count those.
'''Stress test driver for apitrace trim.'''
'''Stress test driver for apitrace trim.'''
-import os, errno, shutil, subprocess
+import os, errno, re, shutil, subprocess
from base_driver import *
from base_driver import *
# Don't descend into any sub-directories (not that there
# should be any)
del dirs[:]
# Don't descend into any sub-directories (not that there
# should be any)
del dirs[:]
+ pattern = re.compile("[0-9]*\.png")
+ def f(x): return re.match(pattern, x)
+ files = filter(f, files)
frames = len(files)
for frame in range(frames):
frames = len(files)
for frame in range(frames):