diff options
author | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2020-12-03 13:30:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 13:30:03 -0800 |
commit | b1c77d1fa2f905a41a5062f98c874d030c4abdb1 (patch) | |
tree | 6a9b011899b0a41dcd4d31a75e5c5b0778729cbc /infra | |
parent | c8d2319aa8cb3ae8f3eaa6a7e6ddf95e364d5fe5 (diff) | |
download | oss-fuzz-b1c77d1fa2f905a41a5062f98c874d030c4abdb1.tar.gz |
[test_all] Fix issue where CIFuzz may use an empty string for ALLOWED_BROKEN_TARGETS_PERCENTAGE (#4778)
Diffstat (limited to 'infra')
-rwxr-xr-x | infra/base-images/base-runner/test_all.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/base-images/base-runner/test_all.py b/infra/base-images/base-runner/test_all.py index 19f4918b8..1524483df 100755 --- a/infra/base-images/base-runner/test_all.py +++ b/infra/base-images/base-runner/test_all.py @@ -187,7 +187,7 @@ def get_allowed_broken_targets_percentage(): """Returns the value of the environment value 'ALLOWED_BROKEN_TARGETS_PERCENTAGE' as an int or returns a reasonable default.""" - return int(os.getenv('ALLOWED_BROKEN_TARGETS_PERCENTAGE', '10')) + return int(os.getenv('ALLOWED_BROKEN_TARGETS_PERCENTAGE') or '10') def main(): |