Added check with wait_for_ips that will stop the test if a timeout occurs

This commit is contained in:
Logan Lipke
2020-07-31 10:30:44 -07:00
parent 80b783560b
commit 976cb5505e
5 changed files with 27 additions and 7 deletions

View File

@@ -101,7 +101,11 @@ class IPV4L4(LFCliBase):
def start(self, print_pass=False, print_fail=False):
temp_stas = self.sta_list.copy()
temp_stas.append("eth1")
self.local_realm.wait_for_ip(self.resource, temp_stas)
if self.local_realm.wait_for_ip(self.resource, temp_stas):
self._pass("All stations got IPs", print_pass)
else:
self._fail("Stations failed to get IPs", print_fail)
exit(1)
cur_time = datetime.datetime.now()
old_rx_values = self.__get_values()
end_time = self.local_realm.parse_time(self.test_duration) + cur_time