[Lldb-commits] [lldb] r255277 - Remove the --output-on-success command line argument from dotest.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 10 10:51:02 PST 2015


Author: zturner
Date: Thu Dec 10 12:51:02 2015
New Revision: 255277

URL: http://llvm.org/viewvc/llvm-project?rev=255277&view=rev
Log:
Remove the --output-on-success command line argument from dotest.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/configuration.py
    lldb/trunk/packages/Python/lldbsuite/test/dosep.py
    lldb/trunk/packages/Python/lldbsuite/test/dotest.py
    lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/configuration.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/configuration.py?rev=255277&r1=255276&r2=255277&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/configuration.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/configuration.py Thu Dec 10 12:51:02 2015
@@ -146,7 +146,6 @@ lldb_platform_working_dir = None
 is_inferior_test_runner = False
 multiprocess_test_subdir = None
 num_threads = None
-output_on_success = False
 no_multiprocess_test_runner = False
 test_runner_name = None
 

Modified: lldb/trunk/packages/Python/lldbsuite/test/dosep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dosep.py?rev=255277&r1=255276&r2=255277&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dosep.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dosep.py Thu Dec 10 12:51:02 2015
@@ -72,7 +72,6 @@ test_counter = None
 total_tests = None
 test_name_len = None
 dotest_options = None
-output_on_success = False
 RESULTS_FORMATTER = None
 RUNNER_PROCESS_ASYNC_MAP = None
 RESULTS_LISTENER_CHANNEL = None
@@ -120,13 +119,8 @@ def report_test_failure(name, command, o
 
 
 def report_test_pass(name, output):
-    global output_lock, output_on_success
+    global output_lock
     with output_lock:
-        if not (RESULTS_FORMATTER and RESULTS_FORMATTER.is_using_terminal()):
-            if output_on_success:
-                print(file=sys.stderr)
-                print(output, file=sys.stderr)
-                print("[%s PASSED]" % name, file=sys.stderr)
         update_progress(name)
 
 
@@ -1425,15 +1419,9 @@ def default_test_runner_name(num_threads
     return test_runner_name
 
 
-def main(print_details_on_success, num_threads, test_subdir,
-         test_runner_name, results_formatter):
+def main(num_threads, test_subdir, test_runner_name, results_formatter):
     """Run dotest.py in inferior mode in parallel.
 
-    @param print_details_on_success the parsed value of the output-on-success
-    command line argument.  When True, details of a successful dotest inferior
-    are printed even when everything succeeds.  The normal behavior is to
-    not print any details when all the inferior tests pass.
-
     @param num_threads the parsed value of the num-threads command line
     argument.
 
@@ -1460,8 +1448,7 @@ def main(print_details_on_success, num_t
 
     dotest_argv = sys.argv[1:]
 
-    global output_on_success, RESULTS_FORMATTER
-    output_on_success = print_details_on_success
+    global RESULTS_FORMATTER
     RESULTS_FORMATTER = results_formatter
 
     # We can't use sys.path[0] to determine the script directory

Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest.py?rev=255277&r1=255276&r2=255277&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Thu Dec 10 12:51:02 2015
@@ -383,7 +383,7 @@ def parseOptionsAndInitTestdirs():
 
     if sys.platform.startswith('win32'):
         os.environ['LLDB_DISABLE_CRASH_DIALOG'] = str(args.disable_crash_dialog)
-        os.environ['LLDB_LAUNCH_INFERIORS_WITHOUT_CONSOLE'] = str(args.hide_inferior_console)
+        os.environ['LLDB_LAUNCH_INFERIORS_WITHOUT_CONSOLE'] = str(True)
 
     if do_help == True:
         usage(parser)
@@ -394,10 +394,6 @@ def parseOptionsAndInitTestdirs():
     if args.inferior:
         configuration.is_inferior_test_runner = True
 
-    # Turn on output_on_sucess if either explicitly added or -v specified.
-    if args.output_on_success or args.v:
-        configuration.output_on_success = True
-
     if args.num_threads:
         configuration.num_threads = args.num_threads
 
@@ -975,8 +971,7 @@ def run_suite():
     # multiprocess test runner here.
     if isMultiprocessTestRunner():
         from . import dosep
-        dosep.main(configuration.output_on_success, configuration.num_threads,
-                   configuration.multiprocess_test_subdir,
+        dosep.main(configuration.num_threads, configuration.multiprocess_test_subdir,
                    configuration.test_runner_name, configuration.results_formatter_object)
         raise Exception("should never get here")
     elif configuration.is_inferior_test_runner:

Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py?rev=255277&r1=255276&r2=255277&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py Thu Dec 10 12:51:02 2015
@@ -95,9 +95,7 @@ def create_parser():
     group.add_argument('--env', dest='set_env_vars', metavar='variable', action='append', help='Specify an environment variable to set to the given value before running the test cases e.g.: --env CXXFLAGS=-O3 --env DYLD_INSERT_LIBRARIES')
     X('-v', 'Do verbose mode of unittest framework (print out each test case invocation)')
     group.add_argument('--enable-crash-dialog', dest='disable_crash_dialog', action='store_false', help='(Windows only) When LLDB crashes, display the Windows crash dialog.')
-    group.add_argument('--show-inferior-console', dest='hide_inferior_console', action='store_false', help='(Windows only) When launching an inferior, dont hide its console window.')
     group.set_defaults(disable_crash_dialog=True)
-    group.set_defaults(hide_inferior_console=True)
 
     group = parser.add_argument_group('Parallel execution options')
     group.add_argument(
@@ -110,11 +108,6 @@ def create_parser():
         action='store_true',
         help='skip running the multiprocess test runner')
     group.add_argument(
-        '--output-on-success',
-        action='store_true',
-        help=('print full output of the dotest.py inferior, '
-              'even when all tests succeed'))
-    group.add_argument(
         '--threads',
         type=int,
         dest='num_threads',




More information about the lldb-commits mailing list