Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3344)

Unified Diff: build/landmines.py

Issue 452903004: More landmines debug output. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/landmines.py
diff --git a/build/landmines.py b/build/landmines.py
index fb8246f212f6cc7b483b8dcd2626dd7032bf32f6..4f9773f41441f59e92e41d984ef1f442fd3112b2 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():
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698