diff options
author | frankf@chromium.org <frankf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-16 06:53:15 +0000 |
---|---|---|
committer | frankf@chromium.org <frankf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-16 06:53:15 +0000 |
commit | f1c3b75c0cb6dadec5346333d340e60e864d0cef (patch) | |
tree | 8bc08cefa5b2d078102afb98e0feddbe708d3cd1 | |
parent | 7fe8846a3125c8ede970a57fe471de32688b0783 (diff) | |
download | chromium_src-f1c3b75c0cb6dadec5346333d340e60e864d0cef.zip chromium_src-f1c3b75c0cb6dadec5346333d340e60e864d0cef.tar.gz chromium_src-f1c3b75c0cb6dadec5346333d340e60e864d0cef.tar.bz2 |
[Android] Remove existing *.em file before running EMMA instrumentation.
BUG=334319
NOTRY=True
Review URL: https://codereview.chromium.org/138873002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245181 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | build/android/gyp/emma_instr.py | 2 |
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, |