aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorZandra <[email protected]>2016-05-30 12:12:20 +0200
committerZandra Hird <[email protected]>2016-06-07 14:34:44 +0200
commitc579ecbc03de184dadf1f8cd9adacf2b862561d6 (patch)
treee3a30b4fc88290aa8df02787a6747dadb9510754 /lib/common_test
parent44c31f513b11e5bca7fbdb96f136b58e423a7dc6 (diff)
downloadotp-c579ecbc03de184dadf1f8cd9adacf2b862561d6.tar.gz
otp-c579ecbc03de184dadf1f8cd9adacf2b862561d6.tar.bz2
otp-c579ecbc03de184dadf1f8cd9adacf2b862561d6.zip
ct_slave: Fix unmatched_return warnings
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/src/ct_slave.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_slave.erl b/lib/common_test/src/ct_slave.erl
index 3ad3937548..571958ca03 100644
--- a/lib/common_test/src/ct_slave.erl
+++ b/lib/common_test/src/ct_slave.erl
@@ -325,7 +325,7 @@ do_start(Host, Node, Options) ->
Functions
end,
MasterHost = gethostname(),
- if
+ _ = if
MasterHost == Host ->
spawn_local_node(Node, Options);
true->
@@ -359,7 +359,7 @@ do_start(Host, Node, Options) ->
pang->
{error, boot_timeout, ENode}
end,
- case Result of
+ _ = case Result of
{ok, ENode}->
ok;
{error, Timeout, ENode}
@@ -422,7 +422,7 @@ spawn_remote_node(Host, Node, Options) ->
{_, _}->
[{user, Username}, {password, Password}]
end ++ [{silently_accept_hosts, true}] ++ SSHOpts,
- application:ensure_all_started(ssh),
+ {ok, _} = application:ensure_all_started(ssh),
{ok, SSHConnRef} = ssh:connect(atom_to_list(Host), SSHPort, SSHOptions),
{ok, SSHChannelId} = ssh_connection:session_channel(SSHConnRef, infinity),
ssh_setenv(SSHConnRef, SSHChannelId, Env),