lf_check.py : removed passing the command to the logger - modified formatting

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-06-20 16:40:01 -06:00
parent 2c980bb902
commit 9c79fa1c04

View File

@@ -595,11 +595,10 @@ NOTE: for now to see stdout and stderr remove /home/lanforge from path.
#self.logger.info("stderr_log_txt: {}".format(stderr_log_txt))
stderr_log = open(stderr_log_txt, 'a')
# HERE is thwere the test is run
# print("running {}".format(command))
# need to take into account --raw_line parameters
command = shlex.split(command)
self.logger.info("running {command}".format(command=command))
# do NOT pass command into self.logger.info will modify formatting
print("running {command}".format(command=command))
try:
process = subprocess.Popen(command, shell=False, stdout=stdout_log, stderr=stderr_log, universal_newlines=True)
# if there is a better solution please propose, the TIMEOUT Result is different then FAIL