summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/cmdline.py
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-03-15 16:07:16 (GMT)
committerGitHub <noreply@github.com>2024-03-15 16:07:16 (GMT)
commitebf29b3a02d5b42a747e271e9cfc4dd73c01ebe6 (patch)
tree5962f074b9a90495d12a9da33688abe75b9493d8 /Lib/test/libregrtest/cmdline.py
parent16349868d396cc1bff5188de3638321e87fe0293 (diff)
downloadcpython-ebf29b3a02d5b42a747e271e9cfc4dd73c01ebe6.zip
cpython-ebf29b3a02d5b42a747e271e9cfc4dd73c01ebe6.tar.gz
cpython-ebf29b3a02d5b42a747e271e9cfc4dd73c01ebe6.tar.bz2
gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601)
Diffstat (limited to 'Lib/test/libregrtest/cmdline.py')
-rw-r--r--Lib/test/libregrtest/cmdline.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py
index 608b12b..876b1bc 100644
--- a/Lib/test/libregrtest/cmdline.py
+++ b/Lib/test/libregrtest/cmdline.py
@@ -164,6 +164,7 @@ class Namespace(argparse.Namespace):
self.match_tests: TestFilter = []
self.pgo = False
self.pgo_extended = False
+ self.tsan = False
self.worker_json = None
self.start = None
self.timeout = None
@@ -333,6 +334,8 @@ def _create_parser():
help='enable Profile Guided Optimization (PGO) training')
group.add_argument('--pgo-extended', action='store_true',
help='enable extended PGO training (slower training)')
+ group.add_argument('--tsan', dest='tsan', action='store_true',
+ help='run a subset of test cases that are proper for the TSAN test')
group.add_argument('--fail-env-changed', action='store_true',
help='if a test file alters the environment, mark '
'the test as failed')