1# Copyright 2018 the V8 project authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import random 6 7from .utils import random_utils 8 9 10class TestConfig(object): 11 def __init__(self, 12 command_prefix, 13 extra_flags, 14 isolates, 15 mode_flags, 16 no_harness, 17 noi18n, 18 random_seed, 19 shell_dir, 20 timeout, 21 verbose): 22 self.command_prefix = command_prefix 23 self.extra_flags = extra_flags 24 self.isolates = isolates 25 self.mode_flags = mode_flags 26 self.no_harness = no_harness 27 self.noi18n = noi18n 28 # random_seed is always not None. 29 self.random_seed = random_seed or random_utils.random_seed() 30 self.shell_dir = shell_dir 31 self.timeout = timeout 32 self.verbose = verbose 33