summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/cmdline.py
diff options
context:
space:
mode:
authorAntoine Pitrou <antoine@python.org>2024-03-18 09:22:19 (GMT)
committerGitHub <noreply@github.com>2024-03-18 09:22:19 (GMT)
commitfcb230180faff828aa67ca2ee1aa94fc522e6daa (patch)
tree506950e0cd5d6b9aed881395189988c29b6a085c /Lib/test/libregrtest/cmdline.py
parent2ac1b48a044429d7a290310348b53a87b9f2033a (diff)
downloadcpython-fcb230180faff828aa67ca2ee1aa94fc522e6daa.zip
cpython-fcb230180faff828aa67ca2ee1aa94fc522e6daa.tar.gz
cpython-fcb230180faff828aa67ca2ee1aa94fc522e6daa.tar.bz2
[3.12] gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601) (#116929)
(cherry picked from commit ebf29b3) Co-authored-by: Donghee Na <donghee.na@python.org>
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 23ca356..ccf5c2e 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')