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

Unified Diff: build/android/buildbot/bb_device_steps.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/bb_device_steps.py
diff --git a/build/android/buildbot/bb_device_steps.py b/build/android/buildbot/bb_device_steps.py
index 2cb431ed88b8de620212c936f1609340d6b92f4a..8202fade20fe82eb3297b520378c85878574cd57 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -268,7 +268,8 @@ def DeviceStatusCheck(_):
def GetDeviceSetupStepCmds():
return [
('provision_devices', ProvisionDevices),
- ('device_status_check', DeviceStatusCheck)
+ ('device_status_check', DeviceStatusCheck),
+ ('coverage_setup', CoverageSetup)
]
@@ -301,6 +302,15 @@ def GetTestStepCmds():
]
+def CoverageSetup(options):
+ """Sets up the coverage directory as a buildbot step."""
+ if options.coverage_bucket:
+ bb_annotations.PrintNamedStep('coverage_setup')
+ print 'Clearing the coverange directory: %s' % options.coverage_dir
+ shutil.rmtree(options.coverage_dir, ignore_errors=True)
+ os.mkdir(options.coverage_dir)
frankf 2013/08/24 02:17:19 It makes more sense to do this in pylib/instrument
+
+
def UploadCoverageData(options, path, coverage_type):
"""Uploads directory at |path| to Google Storage.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698