summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild/android/gyp/emma_instr.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/android/gyp/emma_instr.py b/build/android/gyp/emma_instr.py
index 86ee177..8d97ed3 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,