summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/dotest_args.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-30 16:42:47 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-30 16:42:47 +0000
commitd3ae0bc31043bdd544485f060dbc1bf79a4aa5f9 (patch)
treed08a3fb4f62517a191aad8222704cb4e1afdf2b1 /lldb/packages/Python/lldbsuite/test/dotest_args.py
parent89905168690ba20d8c635156e32443b481865d49 (diff)
downloadbcm5719-llvm-d3ae0bc31043bdd544485f060dbc1bf79a4aa5f9.tar.gz
bcm5719-llvm-d3ae0bc31043bdd544485f060dbc1bf79a4aa5f9.zip
[dotest] Remove multiprocessing
Now that the Xcode project is removed, I want to focus on dotest as a test framework, and remove its driver capabilities for which we already rely on llvm's lit. Removing multiprocessing is the first step in that direction. Differential revision: https://reviews.llvm.org/D65311 llvm-svn: 367331
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest_args.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest_args.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py
index a673d1d3489..4b04552d3cd 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest_args.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py
@@ -4,7 +4,6 @@ from __future__ import absolute_import
# System modules
import argparse
import sys
-import multiprocessing
import os
import textwrap
@@ -34,15 +33,6 @@ def parse_args(parser, argv):
return parser.parse_args(args=argv, namespace=args)
-def default_thread_count():
- # Check if specified in the environment
- num_threads_str = os.environ.get("LLDB_TEST_THREADS")
- if num_threads_str:
- return int(num_threads_str)
- else:
- return multiprocessing.cpu_count()
-
-
def create_parser():
parser = argparse.ArgumentParser(
description='description',
@@ -224,35 +214,6 @@ def create_parser():
help='(Windows only) When LLDB crashes, display the Windows crash dialog.')
group.set_defaults(disable_crash_dialog=True)
- group = parser.add_argument_group('Parallel execution options')
- group.add_argument(
- '--inferior',
- action='store_true',
- help=('specify this invocation is a multiprocess inferior, '
- 'used internally'))
- group.add_argument(
- '--no-multiprocess',
- action='store_true',
- help='skip running the multiprocess test runner')
- group.add_argument(
- '--threads',
- type=int,
- dest='num_threads',
- default=default_thread_count(),
- help=('The number of threads/processes to use when running tests '
- 'separately, defaults to the number of CPU cores available'))
- group.add_argument(
- '--test-subdir',
- action='store',
- help='Specify a test subdirectory to use relative to the test root dir'
- )
- group.add_argument(
- '--test-runner-name',
- action='store',
- help=('Specify a test runner strategy. Valid values: multiprocessing,'
- ' multiprocessing-pool, serial, threading, threading-pool')
- )
-
# Test results support.
group = parser.add_argument_group('Test results options')
group.add_argument(
OpenPOWER on IntegriCloud