mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
- Update pymod tests for the new Python script variable.
This commit is contained in:
parent
e4510c76e5
commit
4b627bd29e
2 changed files with 2 additions and 7 deletions
7
testdata/pymod.tdir/pymod.py
vendored
7
testdata/pymod.tdir/pymod.py
vendored
|
|
@ -37,12 +37,7 @@
|
|||
import os
|
||||
|
||||
def init(id, cfg):
|
||||
scripts=[]
|
||||
s = cfg.python_script
|
||||
while s != None:
|
||||
scripts.append(s.str)
|
||||
s = s.next
|
||||
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, scripts))
|
||||
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, mod_env['script']))
|
||||
return True
|
||||
|
||||
def deinit(id):
|
||||
|
|
|
|||
2
testdata/pymod_thread.tdir/pymod_thread.py
vendored
2
testdata/pymod_thread.tdir/pymod_thread.py
vendored
|
|
@ -37,7 +37,7 @@
|
|||
import os
|
||||
|
||||
def init(id, cfg):
|
||||
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, cfg.python_script))
|
||||
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, mod_env['script']))
|
||||
return True
|
||||
|
||||
def deinit(id):
|
||||
|
|
|
|||
Loading…
Reference in a new issue