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

Unified Diff: build/android/pylib/instrumentation/setup.py

Issue 23189022: [Android] Adds directory cleanup/creation for code coverage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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/buildbot/bb_device_steps.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/instrumentation/setup.py
diff --git a/build/android/pylib/instrumentation/setup.py b/build/android/pylib/instrumentation/setup.py
index 3b24188fbd5253310500d814ee9039732a8a0794..22c234472c3cffa25b32a046558e46d70325a8f7 100644
--- a/build/android/pylib/instrumentation/setup.py
+++ b/build/android/pylib/instrumentation/setup.py
@@ -5,6 +5,7 @@
"""Generates test runner factory and tests for instrumentation tests."""
import logging
+import os
import test_package
import test_runner
@@ -19,6 +20,10 @@ def Setup(test_options):
Returns:
A tuple of (TestRunnerFactory, tests).
"""
+ if (test_options.coverage_dir and not
+ os.path.exists(test_options.coverage_dir)):
+ os.makedirs(test_options.coverage_dir)
+
test_pkg = test_package.TestPackage(test_options.test_apk_path,
test_options.test_apk_jar_path)
tests = test_pkg._GetAllMatchingTests(
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698