From: George Thessalonikefs Date: Mon, 16 Oct 2023 14:32:09 +0000 (+0200) Subject: - Update pymod tests for the new Python script variable. X-Git-Tag: release-1.19.0rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b627bd29e5c28fef256c7e6182bced10adbcc68;p=thirdparty%2Funbound.git - Update pymod tests for the new Python script variable. --- diff --git a/testdata/pymod.tdir/pymod.py b/testdata/pymod.tdir/pymod.py index 1eb7af5b1..f1e988b39 100644 --- a/testdata/pymod.tdir/pymod.py +++ b/testdata/pymod.tdir/pymod.py @@ -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): diff --git a/testdata/pymod_thread.tdir/pymod_thread.py b/testdata/pymod_thread.tdir/pymod_thread.py index 30c258875..58304ab46 100644 --- a/testdata/pymod_thread.tdir/pymod_thread.py +++ b/testdata/pymod_thread.tdir/pymod_thread.py @@ -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):