mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-12-24 14:27:18 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -48,7 +48,7 @@ TEST_DICT: {
|
||||
"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"},
|
||||
--endp_type lf_udp --ap_read --ap_test_mode --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":""},
|
||||
@@ -62,3 +62,5 @@ TEST_DICT: {
|
||||
"sta_connect_example":{"enabled":"FALSE","command":"sta_connect_example.py","args":""},
|
||||
"create_vr.py":{"enabled":"FALSE","command":"create_vr.py","args":"--vr_name 2.vr0 --ports 2.br0,2.vap2 --services"}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user