[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: use ssh-keygen -q in torture_keyfiles


Attached is a trivial patch to master for quieting
the output from the torture_keyfiles test.

-Jon
From 8f7b7b5f6c6f631a4172df5726bbcf5fa1966587 Mon Sep 17 00:00:00 2001
From: Jon Simons <jon@xxxxxxxxxxxxx>
Date: Wed, 9 Apr 2014 16:28:31 -0700
Subject: [PATCH] tests: use ssh-keygen -q in torture_keyfiles

Use 'ssh-keygen ... -q' in torture_keyfiles as is done in
torture_pki to quiet emitting generated keys' ASCII art.

Signed-off-by: Jon Simons <jon@xxxxxxxxxxxxx>
---
 tests/unittests/torture_keyfiles.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/unittests/torture_keyfiles.c b/tests/unittests/torture_keyfiles.c
index 9446bc6..9b09498 100644
--- a/tests/unittests/torture_keyfiles.c
+++ b/tests/unittests/torture_keyfiles.c
@@ -45,10 +45,10 @@ static void setup_both_keys_passphrase(void **state) {
     ssh_session session;
     int rc;
 
-    rc = system("ssh-keygen -t rsa -N " LIBSSH_PASSPHRASE " -f " LIBSSH_RSA_TESTKEY);
+    rc = system("ssh-keygen -t rsa -q -N " LIBSSH_PASSPHRASE " -f " LIBSSH_RSA_TESTKEY);
     assert_true(rc == 0);
 
-    rc = system("ssh-keygen -t dsa -N " LIBSSH_PASSPHRASE " -f " LIBSSH_DSA_TESTKEY);
+    rc = system("ssh-keygen -t dsa -q -N " LIBSSH_PASSPHRASE " -f " LIBSSH_DSA_TESTKEY);
     assert_true(rc == 0);
 
     session = ssh_new();
-- 
1.8.4.21.g992c386


Archive administrator: postmaster@lists.cynapses.org