Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always dereference symbolic links when copying files in ct
I found that the patch [1] I did for dereferencing symbolic link in common tests not always works. The `copy_bare_suites` function only runs when the ct suite is placed in the root folder, but it doesn't run when it is placed in the `test/` folder. In this commit, I added `copy_bare_suites` to all the cases of `maybe_inject_test_dir`. I also avoided copying the folder again in `rebar_prv_compile` when it is a test directory. This last extra copy was run just after the steps in `rebar_prv_common_test` so it was rewriting everything done in `copy_bare_suites`, leaving the folder with the broken symbolic links. [1] erlang#2731
- Loading branch information