diff options
author | Andrew Thompson <andrew@hijacked.us> | 2011-04-23 17:17:49 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-04-23 17:17:49 +0200 |
commit | 2e654513dddeec4e93345b83c2f56cd368b87542 (patch) | |
tree | 6bdaabcee41921ab609c88b596ed7e9f34ebd4ba | |
parent | 98312c881f05b69fe09ed980d773a883261a0a8c (diff) |
Fix eunit regression (reported-by Alexander Dorofeev)
-rw-r--r-- | src/rebar_eunit.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index 6dd3bde..8f7c682 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -247,7 +247,10 @@ cover_analyze(Config, Modules, SrcModules) -> %% suite can be a comma seperated list of modules to test Suite = [list_to_atom(S) || 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 Coverage = [cover_analyze_mod(M) || M <- FilteredModules], |