aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh.erl
diff options
context:
space:
mode:
authorMichael K. Schmidt <[email protected]>2014-08-22 15:34:15 -0500
committerMichael K. Schmidt <[email protected]>2014-08-22 15:34:15 -0500
commit76b79e88aaf4d59e8cb057fe9a075cc27f0c79c8 (patch)
tree2fafb04e8b27ff3aac332113511380bdd9c37a8b /lib/ssh/src/ssh.erl
parent375e6da4a0daa6592a418ecb53afa37aa186f38f (diff)
downloadotp-76b79e88aaf4d59e8cb057fe9a075cc27f0c79c8.tar.gz
otp-76b79e88aaf4d59e8cb057fe9a075cc27f0c79c8.tar.bz2
otp-76b79e88aaf4d59e8cb057fe9a075cc27f0c79c8.zip
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.
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r--lib/ssh/src/ssh.erl3
1 files changed, 2 insertions, 1 deletions
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;