From 76b79e88aaf4d59e8cb057fe9a075cc27f0c79c8 Mon Sep 17 00:00:00 2001 From: "Michael K. Schmidt" Date: Fri, 22 Aug 2014 15:34:15 -0500 Subject: Test Other Clauses of start_shell start_shell() is called by exec, so test those cases as well. Also add support for passing a fun to exec. --- lib/ssh/src/ssh.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ssh/src') diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl index 743c01a42c..8a8d4bb89e 100644 --- a/lib/ssh/src/ssh.erl +++ b/lib/ssh/src/ssh.erl @@ -392,7 +392,8 @@ handle_ssh_option({compression, Value} = Opt) when is_atom(Value) -> Opt; handle_ssh_option({exec, {Module, Function, _}} = Opt) when is_atom(Module), is_atom(Function) -> - + Opt; +handle_ssh_option({exec, Function} = Opt) when is_function(Function) -> Opt; handle_ssh_option({auth_methods, Value} = Opt) when is_list(Value) -> Opt; -- cgit v1.2.3