diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-09-02 21:30:15 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-09-02 21:30:59 +0200 |
commit | f460eb14bc4653ebd0660c85c65a91603c0ef12b (patch) | |
tree | b96dcea4fa0eb226c04be5f3f9a929e15e24bfb3 | |
parent | f0bf3503cb470523db540a1f2080547450de3387 (diff) |
rebar_ct: do not export variable from case
-rw-r--r-- | src/rebar_ct.erl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl index 44f7ec6..0cc9a0d 100644 --- a/src/rebar_ct.erl +++ b/src/rebar_ct.erl @@ -72,17 +72,16 @@ run_test_if_present(TestDir, LogDir, Config, File) -> run_test(TestDir, LogDir, Config, _File) -> {Cmd, RawLog} = make_cmd(TestDir, LogDir, Config), 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}]}]), check_log(Config, RawLog). - clear_log(LogDir, RawLog) -> case filelib:ensure_dir(filename:join(LogDir, "index.html")) of ok -> |