From 4f16e5b7e319d54951d4b64991f1cb0420db50b7 Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Wed, 26 Aug 2015 16:05:22 -0700 Subject: symlink ct test dirs rather than copy --- src/rebar_prv_common_test.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index 1165631..25e9dad 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -299,8 +299,10 @@ copy(State, Dir) -> true -> remove_links(Target); false -> ok end, - ok = ec_file:copy(From, Target, [recursive]), - Target + case rebar_file_utils:symlink_or_copy(From, Target) of + exists -> Target; + ok -> Target + end end. compile_dir(State, Dir) -> -- cgit v1.1