try:
subprocess.check_output(pdnsutilCmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
- print(e.output)
- raise
+ raise AssertionError('%s failed (%d): %s' % (pdnsutilCmd, e.returncode, e.output))
@classmethod
def secureZone(cls, confdir, zonename, key=None):
try:
subprocess.check_output(pdnsutilCmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
- print(e.output)
- raise
+ raise AssertionError('%s failed (%d): %s' % (pdnsutilCmd, e.returncode, e.output))
@classmethod
def generateAllAuthConfig(cls, confdir):
authcmd.append('--local-address=%s' % ipaddress)
authcmd.append('--local-port=%s' % cls._authPort)
authcmd.append('--loglevel=9')
- authcmd.append('--enable-lua-record')
+ authcmd.append('--enable-lua-records')
print(' '.join(authcmd))
logFile = os.path.join(confdir, 'pdns.log')