From 54fa73afed47cbd2a901a9037621ae8ace4f8641 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 19 Dec 2014 18:26:33 +0000 Subject: [PATCH] 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 --- lldb/test/lldbinline.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.7.4