]> granicus.if.org Git - ejabberd/commitdiff
Pre-load applications before setting the environment variables
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 27 Jun 2013 06:38:36 +0000 (16:38 +1000)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 27 Jun 2013 09:03:25 +0000 (19:03 +1000)
test/suite.erl

index 7df512cfb710baa8f12822c982c323ba3df136e5..cbb4ca227c458835e5459e1f1f9b49bdfe070200 100644 (file)
@@ -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}),