Fix linter error not properly being caught by level 5 definition

This commit is contained in:
Alexandre Aubin 2021-12-02 15:25:16 +01:00
parent 24aa67e1c5
commit f1ede681b0

View file

@ -130,7 +130,7 @@ def level_5(tests):
return not alias_traversal_detected \
and linter_tests != [] \
and linter_tests[0]["results"]["main_result"] == "success"
and linter_tests[0]["results"]["error"] == []
@level(6, "App is in a community-operated git org")
@ -154,7 +154,7 @@ def level_7(tests):
"""
linter_tests = [t for t in tests if t["test_type"] == "PACKAGE_LINTER"]
# For runtime warnings, ignore stuff happening during upgrades from previous versions
tests_on_which_to_check_for_runtime_warnings = [t for t in tests if not (t["test_type"] == "TEST_UPGRADE" and t["test_arg"])]
too_many_warnings = any(t["results"].get("too_many_warnings") for t in tests_on_which_to_check_for_runtime_warnings)