lf_check.py : -mgr switch does not work in subprocess to access LANForge GUI in test_l3_longevity, updated lf_check_config.ini

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-05-11 07:04:09 -06:00
parent 754207e623
commit 91f7f645fc
3 changed files with 30 additions and 20 deletions

View File

@@ -29,6 +29,7 @@ from json import load
import configparser
from pprint import *
import subprocess
import sys
CONFIG_FILE = os.getcwd() + '/lf_check_config.ini'
@@ -116,8 +117,11 @@ class lf_check():
print("cmd_args {}".format(cmd_args))
#try:
process = subprocess.run((command).split(' '), check= False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
#process = subprocess.run((command).split(' '), check= True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
process = subprocess.run((command).split(' '), check= True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
#process = subprocess.run((command).split(' '), check= True, capture_output=True )
#pss1 = process.stdout.decode('utf-8', 'ignore')
#print(pss1)
print("###################### STDOUT #########################")
print(process.stdout)