From 0f186befead2b878e28c2d8698e7cc6646604c57 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Mon, 10 May 2021 16:24:02 -0600 Subject: [PATCH] lf_check.py lf_check_config.ini : added stderr and stdout support Signed-off-by: Chuck SmileyRekiere --- py-scripts/sandbox/lf_check.py | 8 +++++++- py-scripts/sandbox/lf_check_config.ini | 12 ++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/py-scripts/sandbox/lf_check.py b/py-scripts/sandbox/lf_check.py index 65870bc9..f17c7fe4 100755 --- a/py-scripts/sandbox/lf_check.py +++ b/py-scripts/sandbox/lf_check.py @@ -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)) diff --git a/py-scripts/sandbox/lf_check_config.ini b/py-scripts/sandbox/lf_check_config.ini index 6399b144..29ec99de 100755 --- a/py-scripts/sandbox/lf_check_config.ini +++ b/py-scripts/sandbox/lf_check_config.ini @@ -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":""},