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

Zachary Turner zturner at google.com
Fri Dec 19 10:27:42 PST 2014


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6664

Files:
  lldb/trunk/test/lldbinline.py

Index: lldb/trunk/test/lldbinline.py
===================================================================
--- lldb/trunk/test/lldbinline.py
+++ lldb/trunk/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()):
@@ -98,8 +101,8 @@
     makefile.close()
 
 def CleanMakefile():
-    if (os.path.isfile("Makefile")):
-        os.unlink("Makefile")
+    # Do nothing for now, since the Makefile on disk could be checked into the repo.
+    pass
 
 class InlineTest(TestBase):
     # Internal implementation

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


More information about the lldb-commits mailing list