lf_check.py lf_check_config.ini : added stderr and stdout support

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-05-10 16:24:02 -06:00
parent 90903913f1
commit 0f186befea
2 changed files with 13 additions and 7 deletions

View File

@@ -111,7 +111,13 @@ class lf_check():
print("cmd_args {}".format(cmd_args))
#try:
process = subprocess.run((command).split(' '), check= True, stdout=subprocess.PIPE, 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, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
print("###################### STDOUT #########################")
print(process.stdout)
print("###################### STDERR #########################")
print(process.stderr)
#except:
# print("exception on command: {}".format(command))