mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
lfcli-base: consider test passed if there are no failures.
Previous code also insisted that there was at least one success, but that means that code doing not pass/fail tests would fail. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
@@ -503,7 +503,7 @@ class LFCliBase:
|
||||
pass_counter += 1
|
||||
else:
|
||||
fail_counter += 1
|
||||
if (fail_counter == 0) and (pass_counter > 0):
|
||||
if (fail_counter == 0):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
@@ -402,6 +402,7 @@ python3 ./test_generic.py
|
||||
if len(generic_test.generic_endps_profile.get_failed_result_list()) > 0:
|
||||
logger.warning("Test-Generic Monitor Failing results:\n%s" % "\n".join(generic_test.generic_endps_profile.get_failed_result_list()))
|
||||
|
||||
generic_test.generic_endps_profile.print_pass_fail()
|
||||
if generic_test.passes() and generic_test.generic_endps_profile.passes():
|
||||
generic_test.exit_success()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user