From b1c77d1fa2f905a41a5062f98c874d030c4abdb1 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Thu, 3 Dec 2020 13:30:03 -0800 Subject: [PATCH] [test_all] Fix issue where CIFuzz may use an empty string for ALLOWED_BROKEN_TARGETS_PERCENTAGE (#4778) --- infra/base-images/base-runner/test_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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():