script updates according to realm and lfcli

This commit is contained in:
Dipti
2020-12-10 23:12:39 -08:00
parent e8cd01461d
commit 5216050f6d
4 changed files with 28 additions and 37 deletions

View File

@@ -54,11 +54,11 @@ class IPv4Test(LFCliBase):
self.station_profile.admin_up()
if self.local_realm.wait_for_ip(station_list=self.sta_list, debug=self.debug, timeout_sec=30):
self._pass("Station build finished")
self.passed()
self.exit_success()
else:
self._fail("Stations not able to acquire IP. Please check network input.")
self.failed()
self.exit_fail()
def cleanup(self, sta_list):
@@ -89,13 +89,10 @@ def main():
--host localhost (optional) \\
--port 8080 (optional) \\
--num_stations 3 \\
--security {open|wep|wpa|wpa2|wpa3} \\
--ssid netgear-wpa \\
--passwd admin123-wpa \\
--radio wiphy1
--debug
Note: multiple --radio switches may be entered up to the number of radios available:
--radio wiphy0 <stations> <ssid> <ssid password> --radio <radio 01> <number of last station> <ssid> <ssid password>
''')
parser.add_argument('--test_duration', help='--test_duration sets the duration of the test', default="5m")
@@ -114,9 +111,7 @@ def main():
radio=args.radio)
ip_test = IPv4Test(lfjson_host, lfjson_port, ssid=args.ssid, password=args.passwd, radio=args.radio,
security=args.security, sta_list=station_list)
# ip_test = IPv4Test(lfjson_host, lfjson_port, ssid="jedway-wpa-1", password="jedway-wpa-1",
#security="wpa", sta_list=station_list)
security="wpa", sta_list=station_list)
ip_test.cleanup(station_list)
ip_test.timeout = 60
ip_test.build()