mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601)
This commit is contained in:
parent
16349868d3
commit
ebf29b3a02
5 changed files with 39 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ from .results import TestResults, EXITCODE_INTERRUPTED
|
|||
from .runtests import RunTests, HuntRefleak
|
||||
from .setup import setup_process, setup_test_dir
|
||||
from .single import run_single_test, PROGRESS_MIN_TIME
|
||||
from .tsan import setup_tsan_tests
|
||||
from .utils import (
|
||||
StrPath, StrJSON, TestName, TestList, TestTuple, TestFilter,
|
||||
strip_py_suffix, count, format_duration,
|
||||
|
|
@ -56,6 +57,7 @@ class Regrtest:
|
|||
self.quiet: bool = ns.quiet
|
||||
self.pgo: bool = ns.pgo
|
||||
self.pgo_extended: bool = ns.pgo_extended
|
||||
self.tsan: bool = ns.tsan
|
||||
|
||||
# Test results
|
||||
self.results: TestResults = TestResults()
|
||||
|
|
@ -183,6 +185,9 @@ class Regrtest:
|
|||
# add default PGO tests if no tests are specified
|
||||
setup_pgo_tests(self.cmdline_args, self.pgo_extended)
|
||||
|
||||
if self.tsan:
|
||||
setup_tsan_tests(self.cmdline_args)
|
||||
|
||||
exclude_tests = set()
|
||||
if self.exclude:
|
||||
for arg in self.cmdline_args:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue