mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
rebar_ct: do not export variable from case
This commit is contained in:
parent
f0bf3503cb
commit
f460eb14bc
1 changed files with 6 additions and 7 deletions
|
@ -72,17 +72,16 @@ run_test_if_present(TestDir, LogDir, Config, File) ->
|
||||||
run_test(TestDir, LogDir, Config, _File) ->
|
run_test(TestDir, LogDir, Config, _File) ->
|
||||||
{Cmd, RawLog} = make_cmd(TestDir, LogDir, Config),
|
{Cmd, RawLog} = make_cmd(TestDir, LogDir, Config),
|
||||||
clear_log(LogDir, RawLog),
|
clear_log(LogDir, RawLog),
|
||||||
case rebar_config:is_verbose(Config) of
|
Output = case rebar_config:is_verbose(Config) of
|
||||||
false ->
|
false ->
|
||||||
Output = " >> " ++ RawLog ++ " 2>&1";
|
" >> " ++ RawLog ++ " 2>&1";
|
||||||
true ->
|
true ->
|
||||||
Output = " 2>&1 | tee -a " ++ RawLog
|
" 2>&1 | tee -a " ++ RawLog
|
||||||
end,
|
end,
|
||||||
|
|
||||||
rebar_utils:sh(Cmd ++ Output, [{env,[{"TESTDIR", TestDir}]}]),
|
rebar_utils:sh(Cmd ++ Output, [{env,[{"TESTDIR", TestDir}]}]),
|
||||||
check_log(Config, RawLog).
|
check_log(Config, RawLog).
|
||||||
|
|
||||||
|
|
||||||
clear_log(LogDir, RawLog) ->
|
clear_log(LogDir, RawLog) ->
|
||||||
case filelib:ensure_dir(filename:join(LogDir, "index.html")) of
|
case filelib:ensure_dir(filename:join(LogDir, "index.html")) of
|
||||||
ok ->
|
ok ->
|
||||||
|
|
Loading…
Reference in a new issue