summaryrefslogtreecommitdiff
path: root/test/rebar_dir_SUITE.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-04-27 09:32:39 -0400
committerFred Hebert <mononcqc@ferd.ca>2018-04-27 09:32:39 -0400
commit775261dd0b24d74e48f5873ef1ffff56c0c4829a (patch)
tree7fd2e052524ef247f95076de06ab7dad7dba6c9e /test/rebar_dir_SUITE.erl
parent77058ac5b7b1593f047602184e8d2e1ee6bdb8aa (diff)
Prevent copying or symlink non-existing src_dirs
This would cause crashes on linux and force people to have a src_dirs config that is strictly matching what is on the file system rather than acting as a specification of those that are valid. To compare, if lib_dirs worked the same, then any repo that did not both have apps/ and lib/ would crash, as the spec mentions both options as valid.
Diffstat (limited to 'test/rebar_dir_SUITE.erl')
-rw-r--r--test/rebar_dir_SUITE.erl3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/rebar_dir_SUITE.erl b/test/rebar_dir_SUITE.erl
index f5ac0fc..81051e6 100644
--- a/test/rebar_dir_SUITE.erl
+++ b/test/rebar_dir_SUITE.erl
@@ -79,13 +79,10 @@ alt_src_dir_nested(Config) ->
RebarConfig = [{src_dirs, ["src", "alt/nested"]}],
AppsDir = ?config(apps, Config),
Name1 = ?config(app_one, Config),
- Name2 = ?config(app_two, Config),
ModDir = filename:join([AppsDir, "apps", Name1, "alt", "nested"]),
- ModDir2 = filename:join([AppsDir, "apps", Name2, "alt", "nested"]),
Mod = "-module(altmod). -export([main/0]). main() -> ok.",
ec_file:mkdir_path(ModDir),
- ec_file:mkdir_path(ModDir2),
ok = file:write_file(filename:join([ModDir, "altmod.erl"]), Mod),
Ebin = filename:join([AppsDir, "_build", "default", "lib", Name1, "ebin", "altmod.beam"]),