From d50946f53c38be48fecc19ff9fb1bc7c00e6b345 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Tue, 16 Nov 2021 11:02:47 -0800 Subject: [PATCH] sta_connect: Remove invalid comparisons Signed-off-by: Matthew Stidham --- py-scripts/sta_connect.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/py-scripts/sta_connect.py b/py-scripts/sta_connect.py index c86314e4..b0328d4d 100755 --- a/py-scripts/sta_connect.py +++ b/py-scripts/sta_connect.py @@ -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")