Skip to content

Commit

Permalink
Merge pull request #1018 from talentdeficit/cover_what_are_you_doooooing
Browse files Browse the repository at this point in the history
change detection of valid modules for `eunit`
  • Loading branch information
ferd committed Jan 17, 2016
2 parents f15802b + 6d8559c commit ec7245b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/rebar_prv_eunit.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit ec7245b

Please sign in to comment.