sta_connect: Remove invalid comparisons

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-11-16 11:02:47 -08:00
parent 6f4ff7e252
commit d50946f53c

View File

@@ -267,7 +267,7 @@ class StaConnect(LFCliBase):
else:
self._pass("%s connected to AP: %s With IP: %s" % (sta_name, ap, ip))
if self.passes() == False:
if not self.passes():
if self.cleanup_on_exit:
print("Cleaning up...")
self.remove_stations()
@@ -532,17 +532,14 @@ Example:
run_results = staConnect.get_result_list()
is_passing = staConnect.passes()
if is_passing == False:
if not staConnect.passes():
print("FAIL: Some tests failed")
else:
print("PASS: All tests pass")
print(staConnect.get_all_message())
is_passing = staConnect.passes()
if is_passing == False:
if not staConnect.passes():
print("FAIL: Some tests failed")
else:
print("PASS: All tests pass")