aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/lib/rspamd.py
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-09-05 13:43:21 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-09-05 13:43:21 +0100
commit49fb6ed4d68e7691b5219c78fd0837ca4e2f7b94 (patch)
tree753f00b8f55b45596ef09a3eb7214cf518e58a2e /test/functional/lib/rspamd.py
parent3db11dba2f19bef803f44d0e6b0e659d7d57088a (diff)
downloadrspamd-49fb6ed4d68e7691b5219c78fd0837ca4e2f7b94.tar.gz
rspamd-49fb6ed4d68e7691b5219c78fd0837ca4e2f7b94.zip
[Test] Added more test for rspamadm and test for lua tcp client invoked via rspamadm
Diffstat (limited to 'test/functional/lib/rspamd.py')
-rw-r--r--test/functional/lib/rspamd.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/lib/rspamd.py b/test/functional/lib/rspamd.py
index 97ab516c1..1c4b428a2 100644
--- a/test/functional/lib/rspamd.py
+++ b/test/functional/lib/rspamd.py
@@ -212,3 +212,12 @@ def shutdown_process_with_children(pid):
except:
pass
+
+def write_to_stdin(process_handle, text):
+ lib = BuiltIn().get_library_instance('Process')
+ obj = lib.get_process_object()
+ obj.stdin.write(text + "\n")
+ obj.stdin.flush()
+ obj.stdin.close()
+ out = obj.stdout.read(4096)
+ return out