2018-01-31 09:18:13 +00:00
|
|
|
# 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
|
|
|
|
|
2018-01-31 12:01:49 +00:00
|
|
|
from .utils import random_utils
|
|
|
|
|
2018-01-31 09:18:13 +00:00
|
|
|
|
|
|
|
class TestConfig(object):
|
2018-01-31 12:01:49 +00:00
|
|
|
def __init__(self,
|
|
|
|
command_prefix,
|
|
|
|
extra_flags,
|
|
|
|
isolates,
|
|
|
|
mode_flags,
|
|
|
|
no_harness,
|
|
|
|
noi18n,
|
|
|
|
random_seed,
|
2018-11-22 07:33:45 +00:00
|
|
|
run_skipped,
|
2018-01-31 12:01:49 +00:00
|
|
|
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
|
2018-01-31 09:18:13 +00:00
|
|
|
# random_seed is always not None.
|
2018-01-31 12:01:49 +00:00
|
|
|
self.random_seed = random_seed or random_utils.random_seed()
|
2018-11-22 07:33:45 +00:00
|
|
|
self.run_skipped = run_skipped
|
2018-01-31 12:01:49 +00:00
|
|
|
self.shell_dir = shell_dir
|
|
|
|
self.timeout = timeout
|
|
|
|
self.verbose = verbose
|