diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2013-06-27 16:38:36 +1000 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2013-06-27 19:03:25 +1000 |
commit | 2ea397e476d034d505e38ba563f0be45193b9f8d (patch) | |
tree | 10ab10d102a9111219ad4a13d826b693b190c4f8 /test | |
parent | Do not forget to remove testing beams on "clean" (diff) |
Pre-load applications before setting the environment variables
Diffstat (limited to 'test')
-rw-r--r-- | test/suite.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/suite.erl b/test/suite.erl index 7df512cfb..cbb4ca227 100644 --- a/test/suite.erl +++ b/test/suite.erl @@ -28,6 +28,9 @@ init_config(Config) -> CertFile = filename:join([DataDir, "cert.pem"]), {ok, CWD} = file:get_cwd(), {ok, _} = file:copy(CertFile, filename:join([CWD, "cert.pem"])), + ok = application:load(sasl), + ok = application:load(mnesia), + ok = application:load(ejabberd), application:set_env(ejabberd, config, ConfigPath), application:set_env(ejabberd, log_path, LogPath), application:set_env(sasl, sasl_error_logger, {file, SASLPath}), |