Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2981)

Unified Diff: build/android/generate_emma_html.py

Issue 1571803002: [Android] Prepare build/android/ for catapult+devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@create-device-library-links
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/findbugs_diff.py ('k') | build/android/gyp/create_device_library_links.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/generate_emma_html.py
diff --git a/build/android/generate_emma_html.py b/build/android/generate_emma_html.py
index 699abe59b75c38f60ba42b1ca0b8161c3562b272..64d834f3383a86dd1109755baaaada3727242532 100755
--- a/build/android/generate_emma_html.py
+++ b/build/android/generate_emma_html.py
@@ -12,8 +12,10 @@ import optparse
import os
import sys
+import devil_chromium
from devil.utils import cmd_helper
from pylib import constants
+from pylib.constants import host_paths
def _GetFilesWithExt(root_dir, ext):
@@ -49,6 +51,8 @@ def main():
'runtime.'))
options, _ = option_parser.parse_args()
+ devil_chromium.Initialize()
+
if not (options.coverage_dir and options.metadata_dir and options.output):
option_parser.error('One or more mandatory options are missing.')
@@ -62,7 +66,7 @@ def main():
sources_file = os.path.splitext(f)[0] + '_sources.txt'
with open(sources_file, 'r') as sf:
sources.extend(json.load(sf))
- sources = [os.path.join(constants.DIR_SOURCE_ROOT, s) for s in sources]
+ sources = [os.path.join(host_paths.DIR_SOURCE_ROOT, s) for s in sources]
print 'Sources: %s' % sources
input_args = []
« no previous file with comments | « build/android/findbugs_diff.py ('k') | build/android/gyp/create_device_library_links.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698