Commit 342873a1 authored by Jan Kadlec's avatar Jan Kadlec

tests-extra: check if zone generate was successful.

parent 9822a1ad
......@@ -94,7 +94,9 @@ class ZoneFile(object):
prepare_dir(self.key_dir)
params = ["-s", "-3", "y" if nsec3 else "n", "-k", self.key_dir] \
+ params
zone_generate.main(params)
if zone_generate.main(params) != 0:
raise OSError
except OSError:
raise Exception("Can't create zone file '%s'" % self.path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment