aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEric <[email protected]>2012-12-30 20:01:39 -0500
committerEric <[email protected]>2012-12-30 20:01:39 -0500
commit60e04b48942a8d2e0d401ae5deb84e4dc61d05f5 (patch)
treef904aa417d628c4b2183099995ea0b28c478bbc6 /test
parent7313be05d2805a3cf699e25d160401fd95635e33 (diff)
downloadrelx-60e04b48942a8d2e0d401ae5deb84e4dc61d05f5.tar.gz
relx-60e04b48942a8d2e0d401ae5deb84e4dc61d05f5.tar.bz2
relx-60e04b48942a8d2e0d401ae5deb84e4dc61d05f5.zip
support the ability to specify a root directory
Diffstat (limited to 'test')
-rw-r--r--test/rclt_release_SUITE.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/rclt_release_SUITE.erl b/test/rclt_release_SUITE.erl
index bcdf354..e92772e 100644
--- a/test/rclt_release_SUITE.erl
+++ b/test/rclt_release_SUITE.erl
@@ -166,7 +166,8 @@ make_overridden_release(Config) ->
goal_app_2]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
create_random_name("relcool-output")]),
- {ok, State} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ {ok, Cwd} = file:get_cwd(),
+ {ok, State} = relcool:do(Cwd, undefined, undefined, [], [LibDir1], 2,
OutputDir, [{OverrideAppName, OverrideAppDir}],
[ConfigFile]),
[{{foo, "0.0.1"}, Release}] = ec_dictionary:to_list(rcl_state:releases(State)),
@@ -255,12 +256,13 @@ make_rerun_overridden_release(Config) ->
goal_app_2]}]),
OutputDir = filename:join([proplists:get_value(data_dir, Config),
create_random_name("relcool-output")]),
- {ok, State} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ {ok, Cwd} = file:get_cwd(),
+ {ok, State} = relcool:do(Cwd, undefined, undefined, [], [LibDir1], 2,
OutputDir, [{OverrideAppName, OverrideAppDir}],
[ConfigFile]),
%% Now we run it again to see if it failse.
- {ok, State} = relcool:do(undefined, undefined, [], [LibDir1], 2,
+ {ok, State} = relcool:do(Cwd, undefined, undefined, [], [LibDir1], 2,
OutputDir, [{OverrideAppName, OverrideAppDir}],
[ConfigFile]),