[Lldb-commits] [PATCH] D81032: [lldb/Test] Don't print 'command invoked'

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 3 09:53:40 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG96e7d19a1f22: [lldb/Test] Don't print 'command invoked' (authored by JDevlieghere).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81032/new/

https://reviews.llvm.org/D81032

Files:
  lldb/packages/Python/lldbsuite/test/dotest.py


Index: lldb/packages/Python/lldbsuite/test/dotest.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/dotest.py
+++ lldb/packages/Python/lldbsuite/test/dotest.py
@@ -49,9 +49,6 @@
 from lldbsuite.test_event.event_builder import EventBuilder
 from ..support import seven
 
-def get_dotest_invocation():
-    return ' '.join(sys.argv)
-
 
 def is_exe(fpath):
     """Returns true if fpath is an executable."""
@@ -220,7 +217,6 @@
         parser = dotest_args.create_parser()
         args = parser.parse_args()
     except:
-        print(get_dotest_invocation())
         raise
 
     if args.unset_env_varnames:
@@ -243,10 +239,6 @@
     if args.set_inferior_env_vars:
         lldbtest_config.inferior_env = ' '.join(args.set_inferior_env_vars)
 
-    # Only print the args if being verbose.
-    if args.v:
-        print(get_dotest_invocation())
-
     if args.h:
         do_help = True
 
@@ -1081,7 +1073,6 @@
         "\nSession logs for test failures/errors/unexpected successes"
         " will go into directory '%s'\n" %
         configuration.sdir_name)
-    sys.stderr.write("Command invoked: %s\n" % get_dotest_invocation())
 
     #
     # Invoke the default TextTestRunner to run the test suite


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81032.268244.patch
Type: text/x-patch
Size: 1270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200603/eced8ace/attachment.bin>


More information about the lldb-commits mailing list