mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Better certfile location detection by the test suite
This commit is contained in:
parent
2f7d27677e
commit
c9efdf6167
@ -37,6 +37,8 @@ init_per_suite(Config) ->
|
|||||||
SASLPath = filename:join([PrivDir, "sasl.log"]),
|
SASLPath = filename:join([PrivDir, "sasl.log"]),
|
||||||
MnesiaDir = filename:join([PrivDir, "mnesia"]),
|
MnesiaDir = filename:join([PrivDir, "mnesia"]),
|
||||||
CertFile = filename:join([DataDir, "cert.pem"]),
|
CertFile = filename:join([DataDir, "cert.pem"]),
|
||||||
|
{ok, CWD} = file:get_cwd(),
|
||||||
|
{ok, _} = file:copy(CertFile, filename:join([CWD, "cert.pem"])),
|
||||||
application:set_env(ejabberd, config, ConfigPath),
|
application:set_env(ejabberd, config, ConfigPath),
|
||||||
application:set_env(ejabberd, log_path, LogPath),
|
application:set_env(ejabberd, log_path, LogPath),
|
||||||
application:set_env(sasl, sasl_error_logger, {file, SASLPath}),
|
application:set_env(sasl, sasl_error_logger, {file, SASLPath}),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{loglevel, 4}.
|
{loglevel, 4}.
|
||||||
{hosts, ["localhost"]}.
|
{hosts, ["localhost"]}.
|
||||||
{define_macro, 'CERTFILE', "../../test/ejabberd_SUITE_data/cert.pem"}.
|
{define_macro, 'CERTFILE', "cert.pem"}.
|
||||||
{listen,
|
{listen,
|
||||||
[
|
[
|
||||||
{5222, ejabberd_c2s, [
|
{5222, ejabberd_c2s, [
|
||||||
|
Loading…
Reference in New Issue
Block a user