mirror of https://github.com/google/oss-fuzz.git
[test_all] Fix issue where CIFuzz may use an empty string for ALLOWED_BROKEN_TARGETS_PERCENTAGE (#4778)
This commit is contained in:
parent
c8d2319aa8
commit
b1c77d1fa2
|
@ -187,7 +187,7 @@ def get_allowed_broken_targets_percentage():
|
||||||
"""Returns the value of the environment value
|
"""Returns the value of the environment value
|
||||||
'ALLOWED_BROKEN_TARGETS_PERCENTAGE' as an int or returns a reasonable
|
'ALLOWED_BROKEN_TARGETS_PERCENTAGE' as an int or returns a reasonable
|
||||||
default."""
|
default."""
|
||||||
return int(os.getenv('ALLOWED_BROKEN_TARGETS_PERCENTAGE', '10'))
|
return int(os.getenv('ALLOWED_BROKEN_TARGETS_PERCENTAGE') or '10')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in New Issue