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 run_skipped, 20 shell_dir, 21 timeout, 22 verbose, 23 regenerate_expected_files=False): 24 self.command_prefix = command_prefix 25 self.extra_flags = extra_flags 26 self.isolates = isolates 27 self.mode_flags = mode_flags 28 self.no_harness = no_harness 29 self.noi18n = noi18n 30 # random_seed is always not None. 31 self.random_seed = random_seed or random_utils.random_seed() 32 self.run_skipped = run_skipped 33 self.shell_dir = shell_dir 34 self.timeout = timeout 35 self.verbose = verbose 36 self.regenerate_expected_files = regenerate_expected_files 37