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
parent d26b6360
...@@ -58,6 +58,9 @@ def set_up_landmines(target, new_landmines): ...@@ -58,6 +58,9 @@ def set_up_landmines(target, new_landmines):
if not os.path.exists(out_dir): if not os.path.exists(out_dir):
return return
if not os.path.exists(landmines_path):
print "Landmines tracker didn't exists."
# Make sure the landmines tracker exists. # Make sure the landmines tracker exists.
open(landmines_path, 'a').close() open(landmines_path, 'a').close()
...@@ -73,13 +76,15 @@ def set_up_landmines(target, new_landmines): ...@@ -73,13 +76,15 @@ def set_up_landmines(target, new_landmines):
with open(triggered, 'w') as f: with open(triggered, 'w') as f:
f.writelines(diff) f.writelines(diff)
print "Setting landmine: %s" % triggered print "Setting landmine: %s" % triggered
print "Reason:\n%s" % diff
elif os.path.exists(triggered): elif os.path.exists(triggered):
# Remove false triggered landmines. # Remove false triggered landmines.
os.remove(triggered) os.remove(triggered)
print "Removing landmine: %s" % triggered print "Removing landmine: %s" % triggered
with open(landmines_path, 'w') as f: with open(landmines_path, 'w') as f:
f.writelines(new_landmines) f.writelines(new_landmines)
with open(landmines_path, 'r') as f:
print "Content of the landmines tracker:"
print f.read()
def process_options(): def process_options():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment