summaryrefslogtreecommitdiff
path: root/test/rebar_dir_SUITE.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-09-27 20:17:48 -0400
committerGitHub <noreply@github.com>2017-09-27 20:17:48 -0400
commit4352614e9b74ca9e6a54552afbb536049a08bc7c (patch)
treea01cef1a8c93e6a1c5d72d89a8f5ac6a82bbc0cb /test/rebar_dir_SUITE.erl
parentc3f01c60139977dfad4723748e7c2f493fffd0ae (diff)
parentcf83eb7fc45fac677a83b5f38e87c581cf516cf2 (diff)
Merge pull request #1637 from ferd/re-fix-src-dir-specs
Corrects a fix to src_dir values
Diffstat (limited to 'test/rebar_dir_SUITE.erl')
-rw-r--r--test/rebar_dir_SUITE.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rebar_dir_SUITE.erl b/test/rebar_dir_SUITE.erl
index 3b8e1fc..4743865 100644
--- a/test/rebar_dir_SUITE.erl
+++ b/test/rebar_dir_SUITE.erl
@@ -68,10 +68,11 @@ default_all_src_dirs(Config) ->
["src", "test"] = rebar_dir:all_src_dirs(rebar_state:opts(State), ["src"], ["test"]).
src_dirs(Config) ->
- RebarConfig = [{erl_opts, [{src_dirs, ["foo", "./bar", "bar", "bar/", "./bar/", "baz"]}]}],
+ RebarConfig = [{erl_opts, [{src_dirs, ["foo", "./bar", "bar", "bar/", "./bar/", "baz",
+ "./", ".", "../", "..", "./../", "../.", ".././../"]}]}],
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], return),
- ["bar", "baz", "foo"] = rebar_dir:src_dirs(rebar_state:opts(State)).
+ [".", "..", "../..", "bar", "baz", "foo"] = rebar_dir:src_dirs(rebar_state:opts(State)).
src_dirs_with_opts(Config) ->
RebarConfig = [{erl_opts, [{src_dirs, ["foo", "bar", "baz"]},