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))

View File

@@ -34,8 +34,8 @@ TEST_DICT: {
"test_ipv4_l4":{"enabled":"FALSE","command":"test_ipv4_l4.py","args":""},
"test_ipv4_variable_time":{"enabled":"FALSE","command":"test_ipv4_variable_time.py","args":""},
"create_bridge":{"enabled":"FALSE","command":"create_bridge.py","args":""},
"create_l3":{"enabled":"TRUE","command":"create_l3.py","args":"RADIO_0_CFG --debug"},
"create_l4":{"enabled":"TRUE","command":"create_l4.py","args":"RADIO_1_CFG --debug"},
"create_l3":{"enabled":"FALSE","command":"create_l3.py","args":"RADIO_0_CFG --debug"},
"create_l4":{"enabled":"FALSE","command":"create_l4.py","args":"RADIO_1_CFG --debug"},
"create_macvlan":{"enabled":"FALSE","command":"create_macvlan.py","args":""},
"create_station":{"enabled":"FALSE","command":"create_station.py","args":""},
"create_vap":{"enabled":"FALSE","command":"create_vap.py","args":""},
@@ -44,10 +44,10 @@ TEST_DICT: {
"testgroup":{"enabled":"FALSE","command":"testgroup.py","args":""},
"test_ipv6_connection":{"enabled":"FALSE","command":"test_ipv6_connection.py","args":""},
"test_ipv6_variable_time":{"enabled":"FALSE","command":"test_ipv6_variable_time.py","args":""},
"test_l3_longevity":{"enabled":"FALSE","command":"test_l3_longevity.py","args":"--test_duration 30s --polling_interval 10s --upstream_port eth1
--radio 'radio==wiphy0 stations==1 ssid==jedway-wpa2-x2048-5-3 ssid_pw==jedway-wpa2-x2048-5-3 security==wpa2'
--radio 'radio==wiphy1 stations==1 ssid==jedway-wpa2-x2048-4-1 ssid_pw==jedway-wpa2-x2048-4-1 security==wpa2'
--mgr '192.168.92.13' --ap_read --ap_test_mode --endp_type 'lf_udp lf_tcp' --rates_are_totals --side_a_min_bps=20000 --side_b_min_bps=300000000"},
"test_l3_longevity":{"enabled":"TRUE","command":"test_l3_longevity.py","args":"--test_duration 30s --polling_interval 10s --upstream_port eth1
--radio 'radio==wiphy0,stations==1,ssid==jedway-wpa2-x2048-5-3,ssid_pw==jedway-wpa2-x2048-5-3,security==wpa2'
--radio 'radio==wiphy1,stations==1,ssid==jedway-wpa2-x2048-4-1,ssid_pw==jedway-wpa2-x2048-4-1,security==wpa2'
--mgr '192.168.92.13' --endp_type 'lf_udp lf_tcp' --rates_are_totals --side_a_min_bps=20000 --side_b_min_bps=300000000"},
"test_l3_powersave_traffic":{"enabled":"FALSE","command":"test_l3_powersave_traffic.py","args":""},
"test_l3_scenario_throughput":{"enabled":"FALSE","command":"test_l3_scenario_throughput.py","args":""},
"test_status_msg":{"enabled":"FALSE","command":"test_status_msg.py","args":""},