Skip to content

Commit

Permalink
- Update pymod tests for the new Python script variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
gthess committed Oct 16, 2023
1 parent e4510c7 commit 4b627bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions testdata/pymod.tdir/pymod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion testdata/pymod_thread.tdir/pymod_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 4b627bd

Please sign in to comment.