X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVatExecutor.py;h=a3f12bf46f7a59eac56502d41cc5ffa8bad5e5f8;hp=bfb7fce4e461a0dec7bc7ea38f503814ab3fa3a7;hb=d166ae0881c29dfd05ed61b9a12156f17981bb6d;hpb=036e5a85bab081bfa94b8c025c06aee0addb94cb diff --git a/resources/libraries/python/VatExecutor.py b/resources/libraries/python/VatExecutor.py index bfb7fce4e4..a3f12bf46f 100644 --- a/resources/libraries/python/VatExecutor.py +++ b/resources/libraries/python/VatExecutor.py @@ -245,6 +245,7 @@ class VatTerminal(object): 'sudo -S {}{}'.format(Constants.VAT_BIN_NAME, json_text), self.__VAT_PROMPT) self._exec_failure = False + self.vat_stdout = None def __enter__(self): return self @@ -265,6 +266,7 @@ class VatTerminal(object): try: out = self._ssh.interactive_terminal_exec_command(self._tty, cmd, self.__VAT_PROMPT) + self.vat_stdout = out except: self._exec_failure = True raise