summaryrefslogtreecommitdiff
path: root/deps/v8/tools/testrunner/test_config.py
blob: d9418fe9acca203e89b1e064c981a11704997814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2018 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import random

from .utils import random_utils


class TestConfig(object):
  def __init__(self,
               command_prefix,
               extra_flags,
               isolates,
               mode_flags,
               no_harness,
               noi18n,
               random_seed,
               shell_dir,
               timeout,
               verbose):
    self.command_prefix = command_prefix
    self.extra_flags = extra_flags
    self.isolates = isolates
    self.mode_flags = mode_flags
    self.no_harness = no_harness
    self.noi18n = noi18n
    # random_seed is always not None.
    self.random_seed = random_seed or random_utils.random_seed()
    self.shell_dir = shell_dir
    self.timeout = timeout
    self.verbose = verbose