From ac5ad35283ea93524865e8c3273cc45c70f1d241 Mon Sep 17 00:00:00 2001 From: Michael Achenbach Date: Fri, 2 Feb 2018 15:31:31 +0100 Subject: [PATCH] [test] Make it more likely to use smaller interrupt-budget on fuzzer TBR=sergiyb@chromium.org NOTRY=true Bug: v8:6917 Change-Id: Ie585754c84f42cd864ab3b161a1ae27f7c2d2ab5 Reviewed-on: https://chromium-review.googlesource.com/899303 Reviewed-by: Michael Achenbach Reviewed-by: Sergiy Byelozyorov Commit-Queue: Michael Achenbach Cr-Commit-Position: refs/heads/master@{#51070} --- tools/testrunner/testproc/fuzzer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testrunner/testproc/fuzzer.py b/tools/testrunner/testproc/fuzzer.py index 48765ad24f..90ab4a6f2b 100644 --- a/tools/testrunner/testproc/fuzzer.py +++ b/tools/testrunner/testproc/fuzzer.py @@ -220,7 +220,8 @@ class CompactionFuzzer(Fuzzer): class InterruptBudgetFuzzer(Fuzzer): def create_flags_generator(self, rng, test, analysis_value): while True: - yield ['--interrupt-budget=%d' % rng.randint(1, 144 * 1024)] + limit = 1 + int(rng.random() * 144) + yield ['--interrupt-budget=%d' % rng.randint(1, limit * 1024)] class DeoptAnalyzer(Analyzer):