Index: build/android/gyp/emma_instr.py |
diff --git a/build/android/gyp/emma_instr.py b/build/android/gyp/emma_instr.py |
index 86ee177e1d5d46ca1be75b43c9c51b2329fe42d5..8d97ed38ae1c6030fa69ad936626b7843cfc91e3 100755 |
--- a/build/android/gyp/emma_instr.py |
+++ b/build/android/gyp/emma_instr.py |
@@ -152,6 +152,8 @@ def _RunInstrumentCommand(command, options, args, option_parser): |
options.coverage_file) |
sources_file = os.path.join(os.path.dirname(options.output_path), |
options.sources_file) |
+ if os.path.exists(coverage_file): |
+ os.remove(coverage_file) |
temp_dir = tempfile.mkdtemp() |
try: |
cmd = ['java', '-cp', options.emma_jar, |