added wait_for_ip to verify stations get IP

This commit is contained in:
Dipti
2020-12-08 12:33:58 -08:00
parent 2f6e57bc7c
commit 1d78193e97
5 changed files with 32 additions and 17 deletions

View File

@@ -51,9 +51,13 @@ class IPv4Test(LFCliBase):
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
self.station_profile.create(radio="wiphy0", sta_names_=self.sta_list, debug=self.debug)
self.station_profile.admin_up()
print(" ",flush=True)
time.sleep(15)
self._pass("Station build finished",print_=True)
if self.local_realm.wait_for_ip(station_list=self.sta_list, debug=self.debug, timeout_sec=30):
self._pass("Station build finished", print_=True)
exit(0)
else:
self._fail("Stations not able to acquire IP. Please check network input.", print_=True)
exit(1)
def cleanup(self, sta_list):
self.station_profile.cleanup(sta_list)

View File

@@ -52,9 +52,12 @@ class IPv4Test(LFCliBase):
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug)
self.station_profile.admin_up()
time.sleep(15)
self._pass("Station build finished", print_=True)
exit(0)
if self.local_realm.wait_for_ip(station_list=self.sta_list, debug=self.debug, timeout_sec=30):
self._pass("Station build finished", print_=True)
exit(0)
else:
self._fail("Stations not able to acquire IP. Please check network input.", print_=True)
exit(1)
def cleanup(self, sta_list):
self.station_profile.cleanup(sta_list)

View File

@@ -52,9 +52,12 @@ class IPv4Test(LFCliBase):
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug)
self.station_profile.admin_up()
self._pass("Station build finished",print_=True)
time.sleep(15)
exit(0)
if self.local_realm.wait_for_ip(station_list=self.sta_list, debug=self.debug, timeout_sec=30):
self._pass("Station build finished", print_=True)
exit(0)
else:
self._fail("Stations not able to acquire IP. Please check network input.", print_=True)
exit(1)
def cleanup(self, sta_list):
self.station_profile.cleanup(sta_list)

View File

@@ -52,9 +52,13 @@ class IPv4Test(LFCliBase):
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug)
self.station_profile.admin_up()
time.sleep(15)
self._pass("Station build finished",print_=True)
exit(0)
if self.local_realm.wait_for_ip(station_list=self.sta_list, debug=self.debug, timeout_sec=30):
self._pass("Station build finished", print_=True)
exit(0)
else:
self._fail("Stations not able to acquire IP. Please check network input.", print_=True)
exit(1)
def cleanup(self, sta_list):
self.station_profile.cleanup(sta_list)

View File

@@ -52,11 +52,12 @@ class IPv4Test(LFCliBase):
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug)
self.station_profile.admin_up()
self._pass("Station build finished",print_=True)
time.sleep(10)
print(" ",flush=True)
time.sleep(10)
exit(0)
if self.local_realm.wait_for_ip(station_list=self.sta_list, debug=self.debug, timeout_sec=30):
self._pass("Station build finished", print_=True)
exit(0)
else:
self._fail("Stations not able to acquire IP. Please check network input.", print_=True)
exit(1)
def cleanup(self, sta_list):
self.station_profile.cleanup(sta_list)