diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/ejabberd_SUITE_data/extauth.py | 4 | ||||
-rw-r--r-- | test/suite.erl | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/test/ejabberd_SUITE_data/extauth.py b/test/ejabberd_SUITE_data/extauth.py index 263d6464e..b6a217fcc 100755 --- a/test/ejabberd_SUITE_data/extauth.py +++ b/test/ejabberd_SUITE_data/extauth.py @@ -13,6 +13,10 @@ def read(): write(True) elif cmd == 'isuser': u, s = pkt.split(':', 2)[1:] + if u == "wrong": + write(False) + else: + write(True) elif cmd == 'setpass': u, s, p = pkt.split(':', 3)[1:] write(True) diff --git a/test/suite.erl b/test/suite.erl index b91583d18..960cbdc90 100644 --- a/test/suite.erl +++ b/test/suite.erl @@ -89,8 +89,14 @@ init_config(Config) -> ConfigPath = filename:join([CWD, "ejabberd.yml"]), ok = file:write_file(ConfigPath, CfgContent2), setup_ejabberd_lib_path(Config), - ok = application:load(sasl), - ok = application:load(mnesia), + case application:load(sasl) of + ok -> ok; + {error, {already_loaded, _}} -> ok + end, + case application:load(mnesia) of + ok -> ok; + {error, {already_loaded, _}} -> ok + end, case application:load(ejabberd) of ok -> ok; {error, {already_loaded, _}} -> ok |