[Lldb-commits] [lldb] 4dba3f4 - [dotest] Log a warning when --server and --out-of-tree-debugserver are set

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 7 15:03:36 PDT 2020


Author: Davide Italiano
Date: 2020-07-07T15:03:08-07:00
New Revision: 4dba3f4e030a906f9ec7e940dfc4a57b94374154

URL: https://github.com/llvm/llvm-project/commit/4dba3f4e030a906f9ec7e940dfc4a57b94374154
DIFF: https://github.com/llvm/llvm-project/commit/4dba3f4e030a906f9ec7e940dfc4a57b94374154.diff

LOG: [dotest] Log a warning when --server and --out-of-tree-debugserver are set

Suggested by Vedant.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index f13f445aaa9f..f9975b27c475 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -363,6 +363,9 @@ def parseOptionsAndInitTestdirs():
                     args.executable)
             sys.exit(-1)
 
+    if args.server and args.out_of_tree_debugserver:
+        logging.warning('Both --server and --out-of-tree-debugserver are set')
+
     if args.server and not args.out_of_tree_debugserver:
         os.environ['LLDB_DEBUGSERVER_PATH'] = args.server
 


        


More information about the lldb-commits mailing list