summaryrefslogtreecommitdiffstats
path: root/test/functional/lib/rspamd.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/lib/rspamd.py')
-rw-r--r--test/functional/lib/rspamd.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/lib/rspamd.py b/test/functional/lib/rspamd.py
index 4da8712a3..d45faa794 100644
--- a/test/functional/lib/rspamd.py
+++ b/test/functional/lib/rspamd.py
@@ -72,6 +72,11 @@ def HTTP(method, host, port, path, data=None, headers={}):
def make_temporary_directory():
return tempfile.mkdtemp()
+def path_splitter(path):
+ dirname = os.path.dirname(path)
+ basename = os.path.basename(path)
+ return [dirname, basename]
+
def read_log_from_position(filename, offset):
offset = long(offset)
f = open(filename, 'rb')