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
This commit is contained in:
parent
d26b636085
commit
d941a443f2
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user