diff options
-rw-r--r-- | tests/torture.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/torture.c b/tests/torture.c index 253d65ab..f957d51c 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -771,7 +771,7 @@ static void torture_setup_create_sshd_config(void **state) "HostKey %s\n" "\n" "LogLevel DEBUG3\n" - "Subsystem sftp %s\n" + "Subsystem sftp %s -l DEBUG2\n" "\n" "PasswordAuthentication yes\n" "KbdInteractiveAuthentication yes\n" @@ -969,6 +969,7 @@ void _torture_filter_tests(UnitTest *tests, size_t ntests){ int main(int argc, char **argv) { struct argument_s arguments; + char *env = getenv("LIBSSH_VERBOSITY"); arguments.verbose=0; arguments.pattern=NULL; @@ -976,6 +977,12 @@ int main(int argc, char **argv) { verbosity=arguments.verbose; pattern=arguments.pattern; + if (verbosity == 0 && env != NULL && env[0] != '\0') { + if (env[0] > '0' && env[0] < '9') { + verbosity = atoi(env); + } + } + return torture_run_tests(); } |