From 600d1260da624cf23a210bd3dfa91f9d835a469b Mon Sep 17 00:00:00 2001 From: Shi Pujin Date: Thu, 2 Nov 2023 15:29:56 +0800 Subject: [PATCH] test: fix timeout of test-cpu-prof-dir-worker.js in LoongArch devices PR-URL: https://github.com/nodejs/node/pull/50363 Reviewed-By: Michael Dawson Reviewed-By: Richard Lau Reviewed-By: Yagiz Nizipli --- tools/test.py | 1 + tools/utils.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tools/test.py b/tools/test.py index d35b45a669bccc..5a2bcb3b6d92ca 100755 --- a/tools/test.py +++ b/tools/test.py @@ -915,6 +915,7 @@ def GetTestStatus(self, context, sections, defs): TIMEOUT_SCALEFACTOR = { 'arm' : { 'debug' : 8, 'release' : 3 }, # The ARM buildbots are slow. 'riscv64' : { 'debug' : 8, 'release' : 3 }, # The riscv devices are slow. + 'loong64' : { 'debug' : 4, 'release' : 1 }, 'ia32' : { 'debug' : 4, 'release' : 1 }, 'ppc' : { 'debug' : 4, 'release' : 1 }, 's390' : { 'debug' : 4, 'release' : 1 } } diff --git a/tools/utils.py b/tools/utils.py index 32a3b3dbcb824c..f0172b3c825a05 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -99,6 +99,8 @@ def GuessArchitecture(): return 's390' elif id == 'riscv64': return 'riscv64' + elif id == 'loong64': + return 'loong64' else: id = platform.processor() if id == 'powerpc':