From ec3927f9b06dfe5d958807db7246735d0f399b78 Mon Sep 17 00:00:00 2001 From: Eric B Merritt Date: Tue, 3 Jul 2012 08:07:27 -0500 Subject: [PATCH] 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. --- src/rebar_file_utils.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl index 6eb2ab1..51ba96e 100644 --- a/src/rebar_file_utils.erl +++ b/src/rebar_file_utils.erl @@ -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, _} ->