mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 11:09:55 +00:00
Fix eunit testing of apps that have no erl files
'Erlang' projects that do not contain any erlang files (Joxa, LFE, Elixir, etc) break the eunit task. It attempts to copy an empty list of source files to the .eunit directory. This change makes copying an empty list a simple no-op.
This commit is contained in:
parent
6236ae1ce6
commit
ec3927f9b0
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,8 @@ rm_rf(Target) ->
|
|||
end.
|
||||
|
||||
-spec cp_r(Sources::list(string()), Dest::file:filename()) -> ok.
|
||||
cp_r([], _Dest) ->
|
||||
ok;
|
||||
cp_r(Sources, Dest) ->
|
||||
case os:type() of
|
||||
{unix, _} ->
|
||||
|
|
Loading…
Reference in a new issue