mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Fix linter error not properly being caught by level 5 definition
This commit is contained in:
parent
24aa67e1c5
commit
f1ede681b0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue