visual tests: generate failure report even if you ctrl-c the process early
This commit is contained in:
parent
0215a3cf04
commit
65452698ff
1 changed files with 16 additions and 14 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue