mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
test_ipv4_ps: Fix whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -10,7 +10,6 @@ if sys.version_info[0] != 3:
|
|||||||
print("This script requires Python 3")
|
print("This script requires Python 3")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
|
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
|
||||||
|
|
||||||
lfcli_base = importlib.import_module("py-json.LANforge.lfcli_base")
|
lfcli_base = importlib.import_module("py-json.LANforge.lfcli_base")
|
||||||
@@ -22,7 +21,7 @@ Realm = realm.Realm
|
|||||||
|
|
||||||
class IPV4VariableTime(LFCliBase):
|
class IPV4VariableTime(LFCliBase):
|
||||||
def __init__(self, ssid, security, password, sta_list, name_prefix, upstream, radio,
|
def __init__(self, ssid, security, password, sta_list, name_prefix, upstream, radio,
|
||||||
host="localhost", port=8080,
|
host="localhost", port=8080,
|
||||||
side_a_min_rate=56, side_a_max_rate=0,
|
side_a_min_rate=56, side_a_max_rate=0,
|
||||||
side_b_min_rate=56, side_b_max_rate=0,
|
side_b_min_rate=56, side_b_max_rate=0,
|
||||||
number_template="00000", test_duration="5m", use_ht160=False,
|
number_template="00000", test_duration="5m", use_ht160=False,
|
||||||
@@ -78,7 +77,8 @@ class IPV4VariableTime(LFCliBase):
|
|||||||
cx_rx_map[item] = value_rx
|
cx_rx_map[item] = value_rx
|
||||||
return cx_rx_map
|
return cx_rx_map
|
||||||
|
|
||||||
def __compare_vals(self, old_list, new_list):
|
@staticmethod
|
||||||
|
def __compare_vals(old_list, new_list):
|
||||||
passes = 0
|
passes = 0
|
||||||
expected_passes = 0
|
expected_passes = 0
|
||||||
if len(old_list) == len(new_list):
|
if len(old_list) == len(new_list):
|
||||||
@@ -172,7 +172,6 @@ class IPV4VariableTime(LFCliBase):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
parser = LFCliBase.create_basic_argparse(
|
parser = LFCliBase.create_basic_argparse(
|
||||||
prog='test_ipv4_variable_time.py',
|
prog='test_ipv4_variable_time.py',
|
||||||
# formatter_class=argparse.RawDescriptionHelpFormatter,
|
# formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||||
@@ -194,12 +193,6 @@ Generic command layout:
|
|||||||
--test_duration 2m
|
--test_duration 2m
|
||||||
--debug
|
--debug
|
||||||
''')
|
''')
|
||||||
required = None
|
|
||||||
for agroup in parser._action_groups:
|
|
||||||
if agroup.title == "required arguments":
|
|
||||||
required = agroup
|
|
||||||
#if required is not None:
|
|
||||||
|
|
||||||
optional = None
|
optional = None
|
||||||
for agroup in parser._action_groups:
|
for agroup in parser._action_groups:
|
||||||
if agroup.title == "optional arguments":
|
if agroup.title == "optional arguments":
|
||||||
@@ -215,8 +208,7 @@ Generic command layout:
|
|||||||
num_stations_converted = int(args.num_stations)
|
num_stations_converted = int(args.num_stations)
|
||||||
num_sta = num_stations_converted
|
num_sta = num_stations_converted
|
||||||
|
|
||||||
|
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=num_sta - 1, padding_number_=10000,
|
||||||
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=num_sta-1, padding_number_=10000,
|
|
||||||
radio=args.radio)
|
radio=args.radio)
|
||||||
|
|
||||||
ip_var_test = IPV4VariableTime(host=args.mgr, port=args.mgr_port,
|
ip_var_test = IPV4VariableTime(host=args.mgr, port=args.mgr_port,
|
||||||
|
|||||||
Reference in New Issue
Block a user