summaryrefslogtreecommitdiff
path: root/test/rebar_xref_SUITE.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-03-05 11:22:20 -0500
committerFred Hebert <mononcqc@ferd.ca>2015-03-05 11:22:20 -0500
commitc20e824e631e0e6eca6b9f1ddc869801747b9b41 (patch)
tree7392f5c7c18b9cf845f63f77a877d49b35396c6e /test/rebar_xref_SUITE.erl
parent5f773d7adf738a1dbfdb9c047952477007d70ad3 (diff)
parent1b851267f80b0c0ab839ffb034c9128b796fffc6 (diff)
Merge pull request #221 from tsloughter/new_template_defaults
New template defaults
Diffstat (limited to 'test/rebar_xref_SUITE.erl')
-rw-r--r--test/rebar_xref_SUITE.erl19
1 files changed, 1 insertions, 18 deletions
diff --git a/test/rebar_xref_SUITE.erl b/test/rebar_xref_SUITE.erl
index 1b1d6d7..b2438cf 100644
--- a/test/rebar_xref_SUITE.erl
+++ b/test/rebar_xref_SUITE.erl
@@ -31,7 +31,6 @@ end_per_suite(_Config) ->
init_per_testcase(Case, Config) ->
UpdConfig = rebar_test_utils:init_rebar_state(Config),
AppDir = ?config(apps, UpdConfig),
- {ok, OrigDir} = file:get_cwd(),
file:set_cwd(AppDir),
Name = rebar_test_utils:create_random_name("xrefapp_"),
Vsn = rebar_test_utils:create_random_vsn(),
@@ -43,25 +42,9 @@ init_per_testcase(Case, Config) ->
undefined_function_calls,undefined_functions,
exports_not_used,locals_not_used]}],
[{app_name, Name},
- {rebar_config, RebarConfig},
- {orig_dir, OrigDir} | UpdConfig].
+ {rebar_config, RebarConfig} | UpdConfig].
end_per_testcase(_, Config) ->
- ?debugMsg("End test case cleanup"),
- AppDir = ?config(apps, Config),
- OrigDir = ?config(orig_dir, Config),
- %% Code path cleanup because we set the CWD to the `AppDir' prior
- %% to launching rebar and these paths make it into the code path
- %% before the xref module executes so they don't get cleaned up
- %% automatically after the xref run. Only have to do this because
- %% we are about to remove the directory and there may be
- %% subsequent test cases that error out when the code path tries
- %% to include one of these soon-to-be nonexistent directories.
- Name = ?config(app_name, Config),
- EbinDir = filename:join([AppDir, "_build", "default" "lib", Name, "ebin"]),
- true = code:del_path(EbinDir),
- file:set_cwd(OrigDir),
- ec_file:remove(AppDir, [recursive]),
ok.
all() ->