From d941a443f2dca60cc58e66490c68abf3908b5e55 Mon Sep 17 00:00:00 2001 From: "machenbach@chromium.org" Date: Fri, 8 Aug 2014 14:51:16 +0000 Subject: [PATCH] More landmines debug output. TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/452903004 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23006 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- build/landmines.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/landmines.py b/build/landmines.py index fb8246f..4f9773f 100755 --- a/build/landmines.py +++ b/build/landmines.py @@ -58,6 +58,9 @@ def set_up_landmines(target, new_landmines): if not os.path.exists(out_dir): return + if not os.path.exists(landmines_path): + print "Landmines tracker didn't exists." + # Make sure the landmines tracker exists. open(landmines_path, 'a').close() @@ -73,13 +76,15 @@ def set_up_landmines(target, new_landmines): with open(triggered, 'w') as f: f.writelines(diff) print "Setting landmine: %s" % triggered - print "Reason:\n%s" % diff elif os.path.exists(triggered): # Remove false triggered landmines. os.remove(triggered) print "Removing landmine: %s" % triggered with open(landmines_path, 'w') as f: f.writelines(new_landmines) + with open(landmines_path, 'r') as f: + print "Content of the landmines tracker:" + print f.read() def process_options(): -- 2.7.4