[Lldb-commits] [lldb] r138466 - /lldb/trunk/test/lldbtest.py

Johnny Chen johnny.chen at apple.com
Wed Aug 24 12:48:51 PDT 2011


Author: johnny
Date: Wed Aug 24 14:48:51 2011
New Revision: 138466

URL: http://llvm.org/viewvc/llvm-project?rev=138466&view=rev
Log:
Pretty print the run options for dumpSessionInfo(self) client.

Modified:
    lldb/trunk/test/lldbtest.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=138466&r1=138465&r2=138466&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Wed Aug 24 14:48:51 2011
@@ -777,11 +777,13 @@
         self.dumpSessionInfo()."""
         arch = self.getArchitecture()
         comp = self.getCompiler()
-        if not arch and not comp:
-            return ""
+        if arch:
+            option_str = "-A " + arch
         else:
-            return "%s %s" % ("-A "+arch if arch else "",
-                              "-C "+comp if comp else "")
+            option_str = ""
+        if comp:
+            option_str += "-C " + comp
+        return option_str
 
     # ==================================================
     # Build methods supported through a plugin interface





More information about the lldb-commits mailing list