From 1b74aa3cb2540e0be6f17f5b9dc57dd702929563 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 d35b45a669b..5a2bcb3b6d9 100755 --- a/tools/test.py +++ b/tools/test.py @@ -915,6 +915,7 @@ class LiteralTestSuite(TestSuite): 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 32a3b3dbcb8..f0172b3c825 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':