29b3bd3826
This will allow on the infra side to easier link to the respective shard on a test failure. Without that it's a hassle to find out on which shard the failing test ran. This also simplifies how the global test_config stores information. Some information was duplicated, but is now rather shared through properties if the owning object is already present. Bug: v8:13681 Change-Id: I52f01a4fac74627575d80f25923faba99eb6a1fb Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4181030 Reviewed-by: Liviu Rau <liviurau@google.com> Commit-Queue: Michael Achenbach <machenbach@chromium.org> Cr-Commit-Position: refs/heads/main@{#85429}
41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
# 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.
|
|
|
|
from .utils import random_utils
|
|
|
|
|
|
class TestConfig(object):
|
|
def __init__(self,
|
|
command_prefix,
|
|
extra_flags,
|
|
framework_name,
|
|
isolates,
|
|
mode_flags,
|
|
no_harness,
|
|
noi18n,
|
|
random_seed,
|
|
run_skipped,
|
|
shard_count,
|
|
shard_id,
|
|
shell_dir,
|
|
timeout,
|
|
verbose,
|
|
regenerate_expected_files=False):
|
|
self.command_prefix = command_prefix
|
|
self.extra_flags = extra_flags
|
|
self.framework_name = framework_name
|
|
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.run_skipped = run_skipped
|
|
self.shard_count = shard_count
|
|
self.shard_id = shard_id
|
|
self.shell_dir = shell_dir
|
|
self.timeout = timeout
|
|
self.verbose = verbose
|
|
self.regenerate_expected_files = regenerate_expected_files
|