mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Catch exception from Elixir.ExUnit.Server.cases_loaded
This commit is contained in:
parent
58b9077b51
commit
6353a06a5d
@ -99,7 +99,7 @@ run_elixir_test(Func) ->
|
||||
|
||||
'Elixir.Code':load_file(list_to_binary(filename:join(test_dir(), atom_to_list(Func)))),
|
||||
%% I did not use map syntax, so that this file can still be build under R16
|
||||
'Elixir.ExUnit.Server':cases_loaded(),
|
||||
catch 'Elixir.ExUnit.Server':cases_loaded(),
|
||||
ResultMap = 'Elixir.ExUnit':run(),
|
||||
case maps:find(failures, ResultMap) of
|
||||
{ok, 0} ->
|
||||
|
Loading…
Reference in New Issue
Block a user