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

Zachary Turner zturner at google.com
Fri Dec 19 10:26:33 PST 2014


Author: zturner
Date: Fri Dec 19 12:26:33 2014
New Revision: 224593

URL: http://llvm.org/viewvc/llvm-project?rev=224593&view=rev
Log:
Don't generate lldb inline test Makefiles if Makefile already exists.

Differential Revision: http://reviews.llvm.org/D6664
Reviewed by: Sean Callanan

Modified:
    lldb/trunk/test/lldbinline.py

Modified: lldb/trunk/test/lldbinline.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbinline.py?rev=224593&r1=224592&r2=224593&view=diff
==============================================================================
--- lldb/trunk/test/lldbinline.py (original)
+++ lldb/trunk/test/lldbinline.py Fri Dec 19 12:26:33 2014
@@ -67,6 +67,9 @@ class CommandParser:
                 return
 
 def BuildMakefile(mydir):
+    if os.path.exists("Makefile"):
+        return
+
     categories = {}
 
     for f in os.listdir(os.getcwd()):
@@ -98,8 +101,8 @@ def BuildMakefile(mydir):
     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





More information about the lldb-commits mailing list