From 2ea397e476d034d505e38ba563f0be45193b9f8d Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 27 Jun 2013 16:38:36 +1000 Subject: [PATCH] Pre-load applications before setting the environment variables --- test/suite.erl | 3 +++ 1 file changed, 3 insertions(+) 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}),