Bug 1563053 - Put all Android PGO outputs in a separate directory; r=firefox-build-system-reviewers,chmanchester

If we end up generating multiple profraw files in the future, it will
help to have them all in a separate directory so that we can just 'adb
pull' the whole directory at once.

Depends on D36839

Differential Revision: https://phabricator.services.mozilla.com/D36840

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Shal 2019-07-09 20:13:35 +00:00
parent d77d483c53
commit 285be9abcc
2 changed files with 3 additions and 2 deletions

View File

@ -13,5 +13,5 @@ config = {
'install',
'run-tests',
],
"output_directory": "/sdcard",
"output_directory": "/sdcard/pgo_profile",
}

View File

@ -201,7 +201,7 @@ class AndroidProfileRun(TestingMixin, BaseScript, MozbaseMixin,
# bool pref.
prefs["browser.tabs.remote.autostart"] = False
outputdir = self.config.get('output_directory', '/sdcard')
outputdir = self.config.get('output_directory', '/sdcard/pgo_profile')
jarlog = posixpath.join(outputdir, 'en-US.log')
profdata = posixpath.join(outputdir, 'default.profraw')
@ -213,6 +213,7 @@ class AndroidProfileRun(TestingMixin, BaseScript, MozbaseMixin,
adbdevice = ADBDevice(adb=adb,
device='emulator-5554')
adbdevice.mkdir(outputdir)
try:
# Run Fennec a first time to initialize its profile