[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/9] tests/vm: Debug mode shows ssh output.
From: |
Alex Bennée |
Subject: |
[PATCH v2 2/9] tests/vm: Debug mode shows ssh output. |
Date: |
Tue, 3 Mar 2020 15:06:15 +0000 |
From: Robert Foley <address@hidden>
Add changes to tests/vm/basevm.py so that during debug mode we show ssh output.
Signed-off-by: Robert Foley <address@hidden>
Reviewed-by: Peter Puhov <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
---
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 4dee6647e6e..c99725b8c0d 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.20.1
- [PATCH v2 0/9] testing/next (buildvm and re-greening tweeks), Alex Bennée, 2020/03/03
- [PATCH v2 1/9] tests/vm: use $(PYTHON) consistently, Alex Bennée, 2020/03/03
- [PATCH v2 2/9] tests/vm: Debug mode shows ssh output.,
Alex Bennée <=
- [PATCH v2 6/9] travis: enable tools build on OS X, Alex Bennée, 2020/03/03
- [PATCH v2 4/9] tests/vm: give wait_ssh() option to wait for root, Alex Bennée, 2020/03/03
- [PATCH v2 7/9] configure: detect and report genisoimage, Alex Bennée, 2020/03/03
- [PATCH v2 3/9] tests/vm: increased max timeout for vm boot., Alex Bennée, 2020/03/03
- [PATCH v2 5/9] tests/vm: Added gen_cloud_init_iso() to basevm.py, Alex Bennée, 2020/03/03
- [PATCH v2 8/9] tests/acceptance: bump avocado requirements to 76.0, Alex Bennée, 2020/03/03
- [PATCH v2 9/9] travis.yml: install python3 numpy and opencv libraries, Alex Bennée, 2020/03/03