diff options
author | Francisco Rojas <frojas@groupon.com> | 2016-03-17 20:09:44 -0700 |
---|---|---|
committer | Francisco Rojas <frojas@groupon.com> | 2016-03-17 20:09:44 -0700 |
commit | 2d1d251add285c6296e0ce1c12e2a9a961c2209b (patch) | |
tree | 5583b5a6167cf7a939e87710b6c0d43c850a2670 /test | |
parent | 8b1193e4af7a43abe84a108435b9a2c52e475f8f (diff) |
use priv_dir in rebar_dir test
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_dir_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rebar_dir_SUITE.erl b/test/rebar_dir_SUITE.erl index 8194464..f287d5f 100644 --- a/test/rebar_dir_SUITE.erl +++ b/test/rebar_dir_SUITE.erl @@ -189,8 +189,8 @@ default_global_cache_dir(Config) -> ?assertEqual(Expected, rebar_dir:global_cache_dir(rebar_state:opts(State))). overwrite_default_global_cache_dir(Config) -> - os:putenv("REBAR_CACHE_DIR", "/tmp/"), + os:putenv("REBAR_CACHE_DIR", ?config(priv_dir, Config)), RebarConfig = [{erl_opts, []}], {ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], return), - Expected = "/tmp/", + Expected = ?config(priv_dir, Config), ?assertEqual(Expected, rebar_dir:global_cache_dir(rebar_state:opts(State))). |