[Lldb-commits] [PATCH] Don't generate lldb inline test Makefiles if Makefile already exists.

Zachary Turner zturner at google.com
Mon Dec 15 10:55:39 PST 2014


Hi clayborg,

http://reviews.llvm.org/D6664

Files:
  test/lldbinline.py

Index: test/lldbinline.py
===================================================================
--- test/lldbinline.py
+++ test/lldbinline.py
@@ -67,6 +67,9 @@
                 return
 
 def BuildMakefile(mydir):
+    if os.path.exists("Makefile"):
+        return
+
     categories = {}
 
     for f in os.listdir(os.getcwd()):
@@ -97,10 +100,6 @@
     makefile.flush()
     makefile.close()
 
-def CleanMakefile():
-    if (os.path.isfile("Makefile")):
-        os.unlink("Makefile")
-
 class InlineTest(TestBase):
     # Internal implementation
 
@@ -145,7 +144,7 @@
 
     @classmethod
     def classCleanup(cls):
-        CleanMakefile()
+        pass
 
     # Utilities for testcases

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6664.17296.patch
Type: text/x-patch
Size: 690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141215/44e8c35c/attachment.bin>


More information about the lldb-commits mailing list