summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-09-29 21:34:09 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-09-29 21:34:09 +0200
commitf8900aecc3e8d86fa17cccf10f3f377c71427e53 (patch)
tree048447ab9de8f522ba0545f34578bcf68d55c452 /src
parentd590c18b5a2e6fbe5a2e5c7490438a2f1d348018 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_ct.erl10
1 files changed, 2 insertions, 8 deletions
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) ->