From f8900aecc3e8d86fa17cccf10f3f377c71427e53 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Wed, 29 Sep 2010 21:34:09 +0200 Subject: Fix dialyzer warning for rebar_utils:sh/2 call rebar_utils:sh/2 terminates on error and does not return an error code as expected. --- src/rebar_ct.erl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl index 350e944..fc87dd3 100644 --- a/src/rebar_ct.erl +++ b/src/rebar_ct.erl @@ -71,14 +71,8 @@ run_test(TestDir, Config, _File) -> Output = " 2>&1 | tee -a " ++ RawLog end, - case rebar_utils:sh(Cmd ++ Output, [{"TESTDIR", TestDir}]) of - ok -> - check_log(RawLog); - {error, _Rc} -> - show_log(RawLog), - ?ERROR("Executing tests failed.\n", []), - ?FAIL - end. + rebar_utils:sh(Cmd ++ Output, [{"TESTDIR", TestDir}]), + check_log(RawLog). clear_log(RawLog) -> -- cgit v1.1