visual tests: generate failure report even if you ctrl-c the process early

This commit is contained in:
Dane Springmeyer 2014-07-29 17:23:09 -07:00
parent 0215a3cf04
commit 65452698ff

View file

@ -434,6 +434,7 @@ if __name__ == "__main__":
os.makedirs(visual_output_dir)
reporting = Reporting(quiet, overwrite_failures)
try:
for filename in files:
config = dict(defaults)
config.update(files[filename])
@ -446,6 +447,7 @@ if __name__ == "__main__":
config.get('bbox'),
scale_factor,
reporting)
mapnik.save_map(m, os.path.join(dirname, 'xml_output', "%s-out.xml" % filename))
#mapnik.save_map(m, os.path.join(dirname, 'xml_output', "%s-out.xml" % filename))
except KeyboardInterrupt:
pass
sys.exit(reporting.summary())