Przeglądaj źródła

rebar_ct: do not export variable from case

pull/3/head
Tuncer Ayaz 12 lat temu
rodzic
commit
f460eb14bc
1 zmienionych plików z 6 dodań i 7 usunięć
  1. +6
    -7
      src/rebar_ct.erl

+ 6
- 7
src/rebar_ct.erl Wyświetl plik

@ -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
false ->
Output = " >> " ++ RawLog ++ " 2>&1";
true ->
Output = " 2>&1 | tee -a " ++ RawLog
end,
Output = case rebar_config:is_verbose(Config) of
false ->
" >> " ++ RawLog ++ " 2>&1";
true ->
" 2>&1 | tee -a " ++ RawLog
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 ->

Ładowanie…
Anuluj
Zapisz