X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVatExecutor.py;h=8b9d632836bca675d15c4cc65c2b4052cf720655;hb=549e949c8e6a9a8bab1c25216b5d5db52eed3c3a;hp=41e97e39019183fc187d290af2123f433d244007;hpb=4c6fe5602edcbd9857a846e5b13a21d5c671a2c8;p=csit.git diff --git a/resources/libraries/python/VatExecutor.py b/resources/libraries/python/VatExecutor.py index 41e97e3901..8b9d632836 100644 --- a/resources/libraries/python/VatExecutor.py +++ b/resources/libraries/python/VatExecutor.py @@ -106,6 +106,9 @@ class VatExecutor(object): if copy_on_execute: ssh.scp(vat_name, vat_name) remote_file_path = vat_name + with open(vat_name, 'r') as vat_file: + for line in vat_file: + VatHistory.add_to_vat_history(node, line.replace('\n', '')) else: remote_file_path = '{0}/{1}/{2}'.format(Constants.REMOTE_FW_DIR, Constants.RESOURCES_TPL_VAT, @@ -201,7 +204,7 @@ class VatTerminal(object): """ __VAT_PROMPT = ("vat# ", ) - __LINUX_PROMPT = (":~$ ", "~]$ ", "~]# ") + __LINUX_PROMPT = (":~# ", ":~$ ", "~]$ ", "~]# ") def __init__(self, node, json_param=True): json_text = ' json' if json_param else ''