diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-11-05 20:45:18 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-11-05 20:45:18 -0600 |
commit | f9b73b5d7ac3674b5830f5fc26cf6003ef652d66 (patch) | |
tree | 81ef3579b0b03af81b4c694792b039845101a6c9 /src/rebar_prv_common_test.erl | |
parent | e195dd9be9d14915fc3317715cd261ebd3703f02 (diff) |
properly reset cwd after finding version of git resource
Diffstat (limited to 'src/rebar_prv_common_test.erl')
-rw-r--r-- | src/rebar_prv_common_test.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index b439977..ce63192 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -34,6 +34,7 @@ init(State) -> -spec do(rebar_state:t()) -> {ok, rebar_state:t()}. do(State) -> Opts = build_options(State), + expand_test_deps(filename:absname(rebar_state:get(State, test_deps_dir, ?DEFAULT_TEST_DEPS_DIR))), ct:run_test(Opts), {ok, State}. @@ -41,6 +42,10 @@ do(State) -> format_error(Reason, State) -> {io_lib:format("~p", [Reason]), State}. +expand_test_deps(Dir) -> + Apps = filelib:wildcard(filename:join([Dir, "*", "ebin"])), + ok = code:add_pathsa(Apps). + ct_opts(State) -> DefaultTestDir = filename:join([rebar_state:dir(State), "test"]), DefaultLogsDir = filename:join([rebar_state:dir(State), "logs"]), |