Bug 1029207 - Uplift Add-on SDK to Firefox r=me

This commit is contained in:
Erik Vold
2014-06-24 10:36:52 -07:00
parent 7cc87e56dd
commit 005166e598
17 changed files with 247 additions and 254 deletions

View File

@@ -539,7 +539,10 @@ def run_app(harness_root_dir, manifest_rdf, harness_options,
outfile_tail = follow_file(outfile)
def maybe_remove_outfile():
if os.path.exists(outfile):
os.remove(outfile)
try:
os.remove(outfile)
except Exception, e:
print "Error Cleaning up: " + str(e)
atexit.register(maybe_remove_outfile)
outf = open(outfile, "w")
popen_kwargs = { 'stdout': outf, 'stderr': outf}