Commit f14a8b15 authored by Iustin Pop's avatar Iustin Pop
Browse files

Switch QA to tty-less mode

This makes ssh generate much less noise when QA is run itself without
a tty, as otherwise we get thousands of lines of:

  Pseudo-terminal will not be allocated because stdin is not a terminal.

in the QA logs (which are already big enough).
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarRené Nussbaumer <>
parent e375fb61
......@@ -191,7 +191,7 @@ def AssertCommand(cmd, fail=False, node=None):
return rcode
def GetSSHCommand(node, cmd, strict=True, opts=None, tty=True):
def GetSSHCommand(node, cmd, strict=True, opts=None, tty=None):
"""Builds SSH command to be executed.
@type node: string
......@@ -203,12 +203,15 @@ def GetSSHCommand(node, cmd, strict=True, opts=None, tty=True):
@param strict: whether to enable strict host key checking
@type opts: list
@param opts: list of additional options
@type tty: Bool
@param tty: If we should use tty
@type tty: boolean or None
@param tty: if we should use tty; if None, will be auto-detected
args = ["ssh", "-oEscapeChar=none", "-oBatchMode=yes", "-l", "root"]
if tty is None:
tty = sys.stdout.isatty()
if tty:
......@@ -275,7 +278,7 @@ def CloseMultiplexers():
def GetCommandOutput(node, cmd, tty=True):
def GetCommandOutput(node, cmd, tty=None):
"""Returns the output of a command executed on the given node.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment