All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Foley <robert.foley@linaro.org>
To: qemu-devel@nongnu.org
Cc: philmd@redhat.com, alex.bennee@linaro.org,
	robert.foley@linaro.org, peter.puhov@linaro.org
Subject: [PATCH v2 02/14] tests/vm: Debug mode shows ssh output.
Date: Wed, 19 Feb 2020 11:35:25 -0500	[thread overview]
Message-ID: <20200219163537.22098-3-robert.foley@linaro.org> (raw)
In-Reply-To: <20200219163537.22098-1-robert.foley@linaro.org>

Add changes to tests/vm/basevm.py so that during debug mode we show ssh output.

Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Peter Puhov <peter.puhov@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
---
 tests/vm/basevm.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index 4dee6647e6..c99725b8c0 100644
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -120,11 +120,16 @@ class BaseVM(object):
         return fname
 
     def _ssh_do(self, user, cmd, check):
-        ssh_cmd = ["ssh", "-q", "-t",
+        ssh_cmd = ["ssh",
+                   "-t",
                    "-o", "StrictHostKeyChecking=no",
                    "-o", "UserKnownHostsFile=" + os.devnull,
                    "-o", "ConnectTimeout=1",
                    "-p", self.ssh_port, "-i", self._ssh_key_file]
+        # If not in debug mode, set ssh to quiet mode to
+        # avoid printing the results of commands.
+        if not self.debug:
+            ssh_cmd.append("-q")
         for var in self.envvars:
             ssh_cmd += ['-o', "SendEnv=%s" % var ]
         assert not isinstance(cmd, str)
-- 
2.17.1



  parent reply	other threads:[~2020-02-19 16:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-19 16:35 [PATCH v2 00/14] tests/vm: Add support for aarch64 VMs Robert Foley
2020-02-19 16:35 ` [PATCH v2 01/14] tests/vm: use $(PYTHON) consistently Robert Foley
2020-02-19 16:35 ` Robert Foley [this message]
2020-02-19 16:35 ` [PATCH v2 03/14] tests/vm: increased max timeout for vm boot Robert Foley
2020-02-19 16:35 ` [PATCH v2 04/14] tests/vm: give wait_ssh() option to wait for root Robert Foley
2020-02-19 16:35 ` [PATCH v2 05/14] tests/vm: Added gen_cloud_init_iso() to basevm.py Robert Foley
2020-02-19 16:35 ` [PATCH v2 06/14] tests/vm: Add workaround to consume console Robert Foley
2020-02-19 16:35 ` [PATCH v2 07/14] tests/vm: Add configuration to basevm.py Robert Foley
2020-02-19 16:35 ` [PATCH v2 08/14] tests/vm: Added configuration file support Robert Foley
2020-02-19 16:35 ` [PATCH v2 09/14] tests/vm: add --boot-console switch Robert Foley
2020-02-19 16:35 ` [PATCH v2 10/14] tests/vm: Add ability to select QEMU from current build Robert Foley
2020-02-19 16:35 ` [PATCH v2 11/14] tests/vm: allow wait_ssh() to specify command Robert Foley
2020-02-19 16:35 ` [PATCH v2 12/14] tests/vm: Added a new script for ubuntu.aarch64 Robert Foley
2020-02-19 16:35 ` [PATCH v2 13/14] tests/vm: Added a new script for centos.aarch64 Robert Foley
2020-02-19 16:35 ` [PATCH v2 14/14] tests/vm: change scripts to use self._config Robert Foley
2020-03-02 16:38 ` [PATCH v2 00/14] tests/vm: Add support for aarch64 VMs Alex Bennée
2020-03-02 21:23   ` Robert Foley
2020-03-03 10:24     ` Alex Bennée
2020-03-03 15:02       ` Robert Foley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200219163537.22098-3-robert.foley@linaro.org \
    --to=robert.foley@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=peter.puhov@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.