summaryrefslogtreecommitdiffstats
path: root/chromium/v8/tools/clusterfuzz/v8_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/tools/clusterfuzz/v8_commands.py')
-rw-r--r--chromium/v8/tools/clusterfuzz/v8_commands.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/chromium/v8/tools/clusterfuzz/v8_commands.py b/chromium/v8/tools/clusterfuzz/v8_commands.py
index 1956ef2802b..58a757e7a79 100644
--- a/chromium/v8/tools/clusterfuzz/v8_commands.py
+++ b/chromium/v8/tools/clusterfuzz/v8_commands.py
@@ -40,9 +40,6 @@ JS_SUPPRESSIONS = os.path.join(BASE_PATH, 'v8_suppressions.js')
ARCH_MOCKS = os.path.join(BASE_PATH, 'v8_mock_archs.js')
WEBASSEMBLY_MOCKS = os.path.join(BASE_PATH, 'v8_mock_webassembly.js')
-# Timeout in seconds for one d8 run.
-TIMEOUT = 3
-
def _startup_files(options):
"""Default files and optional config-specific mock files."""
@@ -70,7 +67,7 @@ class Command(object):
self.files = _startup_files(options)
- def run(self, testcase, verbose=False):
+ def run(self, testcase, timeout, verbose=False):
"""Run the executable with a specific testcase."""
args = [self.executable] + self.flags + self.files + [testcase]
if verbose:
@@ -82,7 +79,7 @@ class Command(object):
return Execute(
args,
cwd=os.path.dirname(os.path.abspath(testcase)),
- timeout=TIMEOUT,
+ timeout=timeout,
)
@property