Remove +b option from dotest.py

llvm-svn: 255037
This commit is contained in:
Zachary Turner 2015-12-08 18:36:05 +00:00
parent 614e8ff855
commit aad25fb9a5
4 changed files with 1 additions and 22 deletions

View File

@ -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

View File

@ -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)

View File

@ -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')

View File

@ -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