diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-01-16 22:16:00 -0500 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2016-01-16 22:16:00 -0500 |
commit | ec7245b454a43205eebc51728672d7a940434e58 (patch) | |
tree | 8900ed69c6b77511c8cb26569eaae3dc62f6912c /src | |
parent | f15802b0462dfcc939ebe1973bae9bbf707638a3 (diff) | |
parent | 6d8559cc0c77d0e2a7043ba042ca9c022a631393 (diff) |
Merge pull request #1018 from talentdeficit/cover_what_are_you_doooooing
change detection of valid modules for `eunit`
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_eunit.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl index b56c456..78412d0 100644 --- a/src/rebar_prv_eunit.erl +++ b/src/rebar_prv_eunit.erl @@ -334,10 +334,9 @@ validate_file(State, File) -> end. validate_module(_State, Module) -> - Path = code:which(Module), - case beam_lib:chunks(Path, [exports]) of - {ok, _} -> ok; - {error, beam_lib, _} -> {error, lists:concat(["Module `", Module, "' not found in project."])} + case code:which(Module) of + non_existing -> {error, lists:concat(["Module `", Module, "' not found in project."])}; + _ -> ok end. resolve_eunit_opts(State) -> |