aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-10-25 13:55:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-10-25 15:15:20 +0200
commit8a50dbc6ba33cf1f2596a07927eec309edf809b3 (patch)
tree04d495fe0b1f1354a7e6303c854e0295587a9e77
parent85239c8ea04b32ce84280508d6860f8032a55d83 (diff)
downloadlibssh-8a50dbc6ba33cf1f2596a07927eec309edf809b3.tar.gz
libssh-8a50dbc6ba33cf1f2596a07927eec309edf809b3.tar.xz
libssh-8a50dbc6ba33cf1f2596a07927eec309edf809b3.zip
tests: Do not parse global config in torture_ssh_session()
Do not parse global config file in sessions created by torture_ssh_session(). Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--tests/torture.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/torture.c b/tests/torture.c
index 772942c2..eeeeafee 100644
--- a/tests/torture.c
+++ b/tests/torture.c
@@ -262,6 +262,8 @@ ssh_session torture_ssh_session(struct torture_state *s,
int method;
int rc;
+ bool process_config = false;
+
if (host == NULL) {
return NULL;
}
@@ -277,6 +279,10 @@ ssh_session torture_ssh_session(struct torture_state *s,
}
#endif /* WITH_PCAP */
+ if (ssh_options_set(session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity) < 0) {
+ goto failed;
+ }
+
if (ssh_options_set(session, SSH_OPTIONS_HOST, host) < 0) {
goto failed;
}
@@ -293,7 +299,8 @@ ssh_session torture_ssh_session(struct torture_state *s,
}
}
- if (ssh_options_set(session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity) < 0) {
+ if (ssh_options_set(session, SSH_OPTIONS_PROCESS_CONFIG,
+ &process_config) < 0) {
goto failed;
}