Fixed bug in testing suite where only images for the first input image would be generated

This commit is contained in:
Niles Rogoff 2016-07-21 14:15:28 -07:00
parent b6b57f57d0
commit 1509ff6e23
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ files = glob.glob("*")
del files[files.index("gentest.py")]
del files[files.index("run.py")]
if not os.path.isdir("out"): os.mkdir("out")
def run(bits, percolor, dither, nonrandom):
def run(f,bits, percolor, dither, nonrandom):
if not percolor:
percolor = []
pc = ""
@ -40,8 +40,8 @@ for f in files:
for nonrandom in [False, "7", "10", "auto"]:
for percolor in [False, True]:
if nonrandom and not dither: continue
torun.append([bits, percolor, dither, nonrandom])
print(str(len(torun)) + " images to generate")
torun.append([f,bits, percolor, dither, nonrandom])
print(str(len(torun)) + " images will be generated")
i = 0
for args in torun:
i += 1