diff options
author | alisdair sullivan <alisdair.sullivan@askuity.com> | 2015-08-26 16:05:22 -0700 |
---|---|---|
committer | alisdair sullivan <alisdair.sullivan@askuity.com> | 2015-08-26 16:05:22 -0700 |
commit | 4f16e5b7e319d54951d4b64991f1cb0420db50b7 (patch) | |
tree | 7688c01bb11a92d1e074ddf291eb6d74d9c8944b | |
parent | e98cf42901604bd3ee09e46e8fad7f498427f7a9 (diff) |
symlink ct test dirs rather than copy
-rw-r--r-- | src/rebar_prv_common_test.erl | 6 |
1 files changed, 4 insertions, 2 deletions
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) -> |