Skip to content

Commit 2f8071e

Browse files
author
ArchFeh
committed
test: fix timeout of test-heap-prof.js in riscv devices
In riscv hardware test-heap-prof.js caused timeout in test because of weak performance. So there is a need to set TIMEOUT_SCALEFACTOR for riscv too. Fixes: #40152
1 parent bb762c5 commit 2f8071e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tools/test.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -896,10 +896,11 @@ def GetTestStatus(self, context, sections, defs):
896896

897897

898898
TIMEOUT_SCALEFACTOR = {
899-
'arm' : { 'debug' : 8, 'release' : 3 }, # The ARM buildbots are slow.
900-
'ia32' : { 'debug' : 4, 'release' : 1 },
901-
'ppc' : { 'debug' : 4, 'release' : 1 },
902-
's390' : { 'debug' : 4, 'release' : 1 } }
899+
'arm' : { 'debug' : 8, 'release' : 3 }, # The ARM buildbots are slow.
900+
'riscv64' : { 'debug' : 8, 'release' : 3 }, # The riscv devices are slow.
901+
'ia32' : { 'debug' : 4, 'release' : 1 },
902+
'ppc' : { 'debug' : 4, 'release' : 1 },
903+
's390' : { 'debug' : 4, 'release' : 1 } }
903904

904905

905906
class Context(object):

tools/utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def GuessArchitecture():
9797
return 'ppc'
9898
elif id == 's390x':
9999
return 's390'
100+
elif id == 'riscv64':
101+
return 'riscv64'
100102
else:
101103
id = platform.processor()
102104
if id == 'powerpc':

0 commit comments

Comments
 (0)