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

Unified Diff: build/android/tombstones.py

Issue 1660693002: Add --output-dir flag to third_party/android_platform/development/scripts/stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: redo 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
Index: build/android/tombstones.py
diff --git a/build/android/tombstones.py b/build/android/tombstones.py
index a7bd6feae21e8d6c6926717724af5d1bbf3989e1..ed765be380d5940c9876e5414f0e80cd6597cbec 100755
--- a/build/android/tombstones.py
+++ b/build/android/tombstones.py
@@ -24,6 +24,7 @@ from devil.android import device_blacklist
from devil.android import device_errors
from devil.android import device_utils
from devil.utils import run_tests_helper
+from pylib import constants
_TZ_UTC = {'TZ': 'UTC'}
@@ -129,6 +130,8 @@ def _ResolveSymbols(tombstone_data, include_stack, device_abi):
stack_tool = os.path.join(os.path.dirname(__file__), '..', '..',
'third_party', 'android_platform', 'development',
'scripts', 'stack')
+ # --output-directory is passed implicitly via the CHROMIUM_OUTPUT_DIR
jbudorick 2016/02/04 16:13:45 nit: I'd prefer explicitly passing it on the comma
agrieve 2016/02/04 18:30:50 Done.
+ # environment variable.
proc = subprocess.Popen([stack_tool, '--arch', arch], stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
output = proc.communicate(input='\n'.join(tombstone_data))[0]
@@ -237,6 +240,8 @@ def main():
default=4,
help='Number of jobs to use when processing multiple '
'crash stacks.')
+ parser.add_option('--output-directory',
+ help='Path to the root build directory.')
options, _ = parser.parse_args()
devil_chromium.Initialize()
@@ -245,6 +250,12 @@ def main():
if options.blacklist_file
else None)
+ if options.output_directory:
+ constants.SetOutputDirectory(options.output_directory)
+
+ # Do an up-front test that the output directory is known.
+ constants.CheckOutDirectory()
+
if options.device:
devices = [device_utils.DeviceUtils(options.device)]
else:

Powered by Google App Engine
This is Rietveld 408576698