From: Zachary Turner Date: Fri, 19 Dec 2014 18:26:33 +0000 (+0000) Subject: Don't generate lldb inline test Makefiles if Makefile already exists. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54fa73afed47cbd2a901a9037621ae8ace4f8641;p=platform%2Fupstream%2Fllvm.git Don't generate lldb inline test Makefiles if Makefile already exists. Differential Revision: http://reviews.llvm.org/D6664 Reviewed by: Sean Callanan llvm-svn: 224593 --- diff --git a/lldb/test/lldbinline.py b/lldb/test/lldbinline.py index 868b695..37c57f3 100644 --- a/lldb/test/lldbinline.py +++ b/lldb/test/lldbinline.py @@ -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