summaryrefslogtreecommitdiff
path: root/src/rebar_ct.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_ct.erl')
-rw-r--r--src/rebar_ct.erl14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl
index e24a3ce..152e28f 100644
--- a/src/rebar_ct.erl
+++ b/src/rebar_ct.erl
@@ -226,9 +226,10 @@ make_cmd(TestDir, RawLogDir, Config) ->
filename:join(Cwd, TestDir)]) ++
get_cover_config(Config, Cwd) ++
get_ct_config_file(TestDir) ++
- get_config_file(TestDir) ++
get_suites(Config, TestDir) ++
- get_case(Config);
+ get_case(Config) ++
+ get_extra_params(Config) ++
+ get_config_file(TestDir);
SpecFlags ->
?FMT("~s"
" -pa ~s"
@@ -242,11 +243,12 @@ make_cmd(TestDir, RawLogDir, Config) ->
build_name(Config),
LogDir,
filename:join(Cwd, TestDir)]) ++
- SpecFlags ++ get_cover_config(Config, Cwd)
+ SpecFlags ++
+ get_cover_config(Config, Cwd) ++
+ get_extra_params(Config)
end,
- Cmd1 = Cmd ++ get_extra_params(Config),
RawLog = filename:join(LogDir, "raw.log"),
- {Cmd1, RawLog}.
+ {Cmd, RawLog}.
build_name(Config) ->
case rebar_config:get_local(Config, ct_use_short_names, false) of
@@ -326,7 +328,7 @@ get_config_file(TestDir) ->
false ->
" ";
true ->
- " -config " ++ Config
+ " -erl_args -config " ++ Config
end.
get_suites(Config, TestDir) ->