mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Fix eunit regression (reported-by Alexander Dorofeev)
This commit is contained in:
parent
98312c881f
commit
2e654513dd
1 changed files with 4 additions and 1 deletions
|
@ -247,7 +247,10 @@ cover_analyze(Config, Modules, SrcModules) ->
|
||||||
%% suite can be a comma seperated list of modules to test
|
%% suite can be a comma seperated list of modules to test
|
||||||
Suite = [list_to_atom(S) ||
|
Suite = [list_to_atom(S) ||
|
||||||
S <- string:tokens(rebar_config:get_global(suite, ""), ",")],
|
S <- string:tokens(rebar_config:get_global(suite, ""), ",")],
|
||||||
FilteredModules = [M || M <- Modules, lists:member(M, Suite)],
|
FilteredModules = case Suite of
|
||||||
|
[] -> Modules;
|
||||||
|
_ -> [M || M <- Modules, lists:member(M, Suite)]
|
||||||
|
end,
|
||||||
|
|
||||||
%% Generate coverage info for all the cover-compiled modules
|
%% Generate coverage info for all the cover-compiled modules
|
||||||
Coverage = [cover_analyze_mod(M) || M <- FilteredModules],
|
Coverage = [cover_analyze_mod(M) || M <- FilteredModules],
|
||||||
|
|
Loading…
Reference in a new issue