aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/lua
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-09-27 14:56:02 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-09-27 14:56:02 +0100
commit13a1ea4afb96a189767208f927b4588e9af3faa7 (patch)
tree001326912c46809dcf8d7816bd546ec24605e910 /test/functional/lua
parent48e23c6397077056ef7ef730ea4e2d76ff6c601a (diff)
downloadrspamd-13a1ea4afb96a189767208f927b4588e9af3faa7.tar.gz
rspamd-13a1ea4afb96a189767208f927b4588e9af3faa7.zip
[Test] Fixed undefined variable usage
Diffstat (limited to 'test/functional/lua')
-rw-r--r--test/functional/lua/rspamadm/test_dns_client.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/lua/rspamadm/test_dns_client.lua b/test/functional/lua/rspamadm/test_dns_client.lua
index 15b1d6044..9e7edaa46 100644
--- a/test/functional/lua/rspamadm/test_dns_client.lua
+++ b/test/functional/lua/rspamadm/test_dns_client.lua
@@ -1,16 +1,17 @@
local rspamd_dns = require "rspamd_dns"
local logger = require "rspamd_logger"
-local _r,err = rspamd_config:load_ucl('/Users/mgalanin/build/robot-save/rspamd.conf.last')
+local config_path = '/Users/mgalanin/build/robot-save/rspamd.conf.last'
+local _r,err = rspamd_config:load_ucl(config_path)
if not _r then
- rspamd_logger.errx('cannot parse %s: %s', opts['config'], err)
+ logger.errx('cannot parse %s: %s (r=%s)', config_path, err, _r)
os.exit(1)
end
_r,err = rspamd_config:parse_rcl({'logging', 'worker'})
if not _r then
- rspamd_logger.errx('cannot process %s: %s', opts['config'], err)
+ logger.errx('cannot process %s: %s (r=%s)', config_path, err, _r)
os.exit(1)
end