Cleaned up run function

This commit is contained in:
Logan Lipke
2020-06-22 16:57:24 -07:00
parent cc6753ce9b
commit 34aa90f9af

View File

@@ -71,9 +71,12 @@ class IPv4Test(LFCliBase):
self.profile.use_wpa2(True, self.ssid, self.password)
self.profile.set_prefix(self.prefix)
print("Creating stations")
self.profile.create(resource=1, radio="wiphy0", num_stations=self.num_stations)
for sta_name in list(self.local_realm.find_ports_like("sta[%s..%s]" % (self.prefix[:-1], str(self.prefix[:-2]) + str(self.num_stations - 1)))):
sta_list.append(self.local_realm.name_to_eid(sta_name)[2])
print(sta_list)
time.sleep(self.timeout)
self.run_test(sta_list, True, True)