Sta_connect_multi_example: Remove invalid comparisons

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-11-16 11:03:34 -08:00
parent 69a75872a4
commit db403ed05b

View File

@@ -64,7 +64,7 @@ Example of how to instantiate StaConnect and run the test
print("** endp: "+endp_name) print("** endp: "+endp_name)
pprint.pprint(test.resulting_endpoints[endp_name]) pprint.pprint(test.resulting_endpoints[endp_name])
''' '''
if is_passing == False: if not is_passing:
# run_results = staConnect.get_failed_result_list() # run_results = staConnect.get_failed_result_list()
fail_message = test.get_fail_message() fail_message = test.get_fail_message()
print("Some tests failed:\n" + fail_message) print("Some tests failed:\n" + fail_message)
@@ -78,7 +78,7 @@ Example of how to instantiate StaConnect and run the test
test.dut_passwd = "jedway-wpa2-x2048-5-1" test.dut_passwd = "jedway-wpa2-x2048-5-1"
test.run() test.run()
is_passing = test.passes() is_passing = test.passes()
if is_passing == False: if not is_passing:
# run_results = staConnect.get_failed_result_list() # run_results = staConnect.get_failed_result_list()
fail_message = test.get_fail_message() fail_message = test.get_fail_message()
print("Some tests failed:\n" + fail_message) print("Some tests failed:\n" + fail_message)
@@ -86,7 +86,7 @@ Example of how to instantiate StaConnect and run the test
else: else:
print("Tests pass") print("Tests pass")
if test.cleanup_on_exit == True: if test.cleanup_on_exit:
test.remove_stations() test.remove_stations()