Commit 09d4a426 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[tools] Retain python2 compatibility with divisions in test runner

Bug: v8:9871
Change-Id: Ib2042002c1eba72b81fcd15811a627b13e7e3281
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1866770Reviewed-by: 's avatarTamer Tas <tmrts@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64408}
parent d7793c06
......@@ -205,7 +205,7 @@ class GcIntervalAnalyzer(Analyzer):
class GcIntervalFuzzer(Fuzzer):
def create_flags_generator(self, rng, test, analysis_value):
if analysis_value:
value = analysis_value / 10
value = analysis_value // 10
else:
value = 10000
while True:
......@@ -260,7 +260,7 @@ class DeoptFuzzer(Fuzzer):
def create_flags_generator(self, rng, test, analysis_value):
while True:
if analysis_value:
value = analysis_value / 2
value = analysis_value // 2
else:
value = 10000
interval = rng.randint(self._min, max(value, self._min))
......
......@@ -268,7 +268,7 @@ class CompactProgressIndicator(ProgressIndicator):
'progress': progress,
'failed': self._failed,
'test': name,
'mins': int(elapsed) / 60,
'mins': int(elapsed) // 60,
'secs': int(elapsed) % 60
}
status = self._truncate(status, 78)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment