summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-12-08 18:36:05 +0000
committerZachary Turner <zturner@google.com>2015-12-08 18:36:05 +0000
commitaad25fb9a559241c7f78f8555c328e5fe734f0ab (patch)
treea91167483d54cf2731b3208732c5f9c435bb0ba3 /lldb/packages/Python/lldbsuite/test
parent614e8ff855568c250cb6331f8233099f83218605 (diff)
downloadbcm5719-llvm-aad25fb9a559241c7f78f8555c328e5fe734f0ab.tar.gz
bcm5719-llvm-aad25fb9a559241c7f78f8555c328e5fe734f0ab.zip
Remove +b option from dotest.py
llvm-svn: 255037
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/configuration.py3
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py3
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest_args.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py16
4 files changed, 1 insertions, 22 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/configuration.py b/lldb/packages/Python/lldbsuite/test/configuration.py
index ef91fbb52e3..c66a37b4074 100644
--- a/lldb/packages/Python/lldbsuite/test/configuration.py
+++ b/lldb/packages/Python/lldbsuite/test/configuration.py
@@ -56,9 +56,6 @@ def setupCrashInfoHook():
# The test suite.
suite = unittest2.TestSuite()
-# By default, benchmarks tests are not run.
-just_do_benchmarks_test = False
-
dont_do_dsym_test = False
dont_do_dwarf_test = False
dont_do_dwo_test = False
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 44256ae6fcc..69bc6f1d8a2 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -300,9 +300,6 @@ def parseOptionsAndInitTestdirs():
"functionality (-G lldb-mi, --skip-category lldb-mi) instead.")
sys.exit(1)
- if args.plus_b:
- lldbsuite.test.just_do_benchmarks_test = True
-
if args.b:
if args.b.startswith('-'):
usage(parser)
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py
index 891a335d350..b5345b3de6f 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest_args.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py
@@ -60,7 +60,6 @@ def create_parser():
# Test filtering options
group = parser.add_argument_group('Test filtering options')
group.add_argument('-N', choices=['dwarf', 'dwo', 'dsym'], help="Don't do test cases marked with the @dsym_test/@dwarf_test/@dwo_test decorator by passing dsym/dwarf/dwo as the option arg")
- X('+b', 'Just do benchmark tests', dest='plus_b')
group.add_argument('-b', metavar='blacklist', help='Read a blacklist file specified after this option')
group.add_argument('-f', metavar='filterspec', action='append', help='Specify a filter, which consists of the test class name, a dot, followed by the test method, to only admit such test into the test suite') # FIXME: Example?
X('-g', 'If specified, the filterspec by -f is not exclusive, i.e., if a test module does not match the filterspec (testclass.testmethod), the whole module is still admitted to the test suite')
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 4b0fb37ef14..72c9586bff6 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -521,8 +521,7 @@ def benchmarks_test(func):
raise Exception("@benchmarks_test can only be used to decorate a test method")
@wraps(func)
def wrapper(self, *args, **kwargs):
- if not configuration.just_do_benchmarks_test:
- self.skipTest("benchmarks tests")
+ self.skipTest("benchmarks test")
return func(self, *args, **kwargs)
# Mark this function as such to separate them from the regular tests.
@@ -1457,19 +1456,6 @@ class Base(unittest2.TestCase):
# used for all the test cases.
self.testMethodName = self._testMethodName
- # Benchmarks test is decorated with @benchmarks_test,
- # which also sets the "__benchmarks_test__" attribute of the
- # function object to True.
- try:
- if configuration.just_do_benchmarks_test:
- testMethod = getattr(self, self._testMethodName)
- if getattr(testMethod, "__benchmarks_test__", False):
- pass
- else:
- self.skipTest("non benchmarks test")
- except AttributeError:
- pass
-
# This is for the case of directly spawning 'lldb'/'gdb' and interacting
# with it using pexpect.
self.child = None
OpenPOWER on IntegriCloud