diff options
author | Tristan Sloughter <[email protected]> | 2016-01-11 19:51:27 -0600 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2016-01-11 19:51:27 -0600 |
commit | d9f60a62c0d0cb34d4f0d8671e7e6c510a0548c5 (patch) | |
tree | 3106ec569ea492d5e50e6aa408c5bcfcfc82a3eb /test/rlx_archive_SUITE.erl | |
parent | 701da7b9f2dfb872351b56938f7aed5bff0d79c7 (diff) | |
download | relx-d9f60a62c0d0cb34d4f0d8671e7e6c510a0548c5.tar.gz relx-d9f60a62c0d0cb34d4f0d8671e7e6c510a0548c5.tar.bz2 relx-d9f60a62c0d0cb34d4f0d8671e7e6c510a0548c5.zip |
use priv_dir for generated test data
Diffstat (limited to 'test/rlx_archive_SUITE.erl')
-rw-r--r-- | test/rlx_archive_SUITE.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rlx_archive_SUITE.erl b/test/rlx_archive_SUITE.erl index 0f972b0..2373fa0 100644 --- a/test/rlx_archive_SUITE.erl +++ b/test/rlx_archive_SUITE.erl @@ -26,7 +26,7 @@ end_per_suite(_Config) -> ok. init_per_testcase(_, Config) -> - DataDir = proplists:get_value(data_dir, Config), + DataDir = filename:join(proplists:get_value(priv_dir, Config), ?MODULE), LibDir1 = filename:join([DataDir, rlx_test_utils:create_random_name("lib_dir1_")]), ok = rlx_util:mkdir_p(LibDir1), State = rlx_state:new([], [{lib_dirs, [LibDir1]}], [release]), @@ -58,7 +58,7 @@ basic_tar(Config) -> [{release, {foo, "0.0.1"}, [goal_app_1, goal_app_2]}]), - OutputDir = filename:join([proplists:get_value(data_dir, Config), + OutputDir = filename:join([proplists:get_value(priv_dir, Config), rlx_test_utils:create_random_name("relx-output")]), {ok, State} = relx:do([{relname, foo}, {relvsn, "0.0.1"}, @@ -105,7 +105,7 @@ exclude_erts(Config) -> [{release, {foo, "0.0.1"}, [goal_app_1, goal_app_2]}]), - OutputDir = filename:join([proplists:get_value(data_dir, Config), + OutputDir = filename:join([proplists:get_value(priv_dir, Config), rlx_test_utils:create_random_name("relx-output")]), {ok, State} = relx:do([{relname, foo}, {relvsn, "0.0.1"}, @@ -155,7 +155,7 @@ exclude_src(Config) -> [goal_app_1, goal_app_2]}, {include_src, false}]), - OutputDir = filename:join([proplists:get_value(data_dir, Config), + OutputDir = filename:join([proplists:get_value(priv_dir, Config), rlx_test_utils:create_random_name("relx-output")]), {ok, State} = relx:do([{relname, foo}, {relvsn, "0.0.1"}, @@ -202,7 +202,7 @@ include_src(Config) -> [{release, {foo, "0.0.1"}, [goal_app_1, goal_app_2]}]), - OutputDir = filename:join([proplists:get_value(data_dir, Config), + OutputDir = filename:join([proplists:get_value(priv_dir, Config), rlx_test_utils:create_random_name("relx-output")]), {ok, State} = relx:do([{relname, foo}, {relvsn, "0.0.1"}, |