Delete the -n command line option from dotest.py.

This removes the option to not print some one time version and
diagnostic information when running the test suite.

llvm-svn: 255152
This commit is contained in:
Zachary Turner 2015-12-09 20:48:42 +00:00
parent 6c9e44413f
commit 35a7610a05
3 changed files with 7 additions and 19 deletions

View File

@ -100,10 +100,6 @@ skip_build_and_cleanup = False
# By default, we skip long running test case. Use '-l' option to override.
skip_long_running_test = True
# By default, we print the build dir, lldb version, and svn info. Use '-n' option to
# turn it off.
noHeaders = False
# Parsable mode silences headers, and any other output this script might generate, and instead
# prints machine-readable output similar to what clang tests produce.
parsable = False

View File

@ -330,16 +330,12 @@ def parseOptionsAndInitTestdirs():
if args.executable:
lldbtest_config.lldbExec = args.executable
if args.n:
configuration.noHeaders = True
if args.p:
if args.p.startswith('-'):
usage(parser)
configuration.regexp = args.p
if args.q:
configuration.noHeaders = True
configuration.parsable = True
if args.P and not args.v:
@ -697,10 +693,9 @@ def setupSysPath():
os.environ["LLDB_LIB_DIR"] = lldbLibDir
lldbImpLibDir = os.path.join(lldbLibDir, '..', 'lib') if sys.platform.startswith('win32') else lldbLibDir
os.environ["LLDB_IMPLIB_DIR"] = lldbImpLibDir
if not configuration.noHeaders:
print("LLDB library dir:", os.environ["LLDB_LIB_DIR"])
print("LLDB import library dir:", os.environ["LLDB_IMPLIB_DIR"])
os.system('%s -v' % lldbtest_config.lldbExec)
print("LLDB library dir:", os.environ["LLDB_LIB_DIR"])
print("LLDB import library dir:", os.environ["LLDB_IMPLIB_DIR"])
os.system('%s -v' % lldbtest_config.lldbExec)
# Assume lldb-mi is in same place as lldb
# If not found, disable the lldb-mi tests
@ -722,8 +717,7 @@ def setupSysPath():
elif os.path.isdir(os.path.join(lldbRootDirectory, '.git')) and which("git") is not None:
pipe = subprocess.Popen([which("git"), "svn", "info", lldbRootDirectory], stdout = subprocess.PIPE)
configuration.svn_info = pipe.stdout.read()
if not configuration.noHeaders:
print(configuration.svn_info)
print(configuration.svn_info)
lldbPythonDir = None # The directory that contains 'lldb/__init__.py'
if configuration.lldbFrameworkPath:
@ -1112,10 +1106,9 @@ def run_suite():
configuration.sdir_name = timestamp_started
os.environ["LLDB_SESSION_DIRNAME"] = os.path.join(os.getcwd(), configuration.sdir_name)
if not configuration.noHeaders:
sys.stderr.write("\nSession logs for test failures/errors/unexpected successes"
" will go into directory '%s'\n" % configuration.sdir_name)
sys.stderr.write("Command invoked: %s\n" % getMyCommandLine())
sys.stderr.write("\nSession logs for test failures/errors/unexpected successes"
" will go into directory '%s'\n" % configuration.sdir_name)
sys.stderr.write("Command invoked: %s\n" % getMyCommandLine())
if not os.path.isdir(configuration.sdir_name):
try:

View File

@ -88,7 +88,6 @@ def create_parser():
# Test-suite behaviour
group = parser.add_argument_group('Runtime behaviour options')
X('-d', 'Suspend the process after launch to wait indefinitely for a debugger to attach')
X('-n', "Don't print the headers like build dir, lldb version, and svn info at all")
X('-P', "Use the graphic progress bar.")
X('-q', "Don't print extra output from this script.")
X('-S', "Skip the build and cleanup while running the test. Use this option with care as you would need to build the inferior(s) by hand and build the executable(s) with the correct name(s). This can be used with '-# n' to stress test certain test cases for n number of times")