Bug 1448698 - Use alternate path for stackfixer import in android mochitests; r=me,a=test-only

Android mochitests typically use the xre-path instead of the utility-path. The
stack fixer module should be available in the host-utils, pointed to by xre-path.
This commit is contained in:
Geoff Brown 2018-10-04 13:07:04 -06:00
Родитель 8221a997c1
Коммит c1296ff654
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -2835,12 +2835,13 @@ toolbar#nav-bar {
ignoreMissingLeaks.append(processType)
leakThresholds[processType] = sys.maxsize
utilityPath = options.utilityPath or options.xrePath
mozleak.process_leak_log(
self.leak_report_file,
leak_thresholds=leakThresholds,
ignore_missing_leaks=ignoreMissingLeaks,
log=self.log,
stack_fixer=get_stack_fixer_function(options.utilityPath,
stack_fixer=get_stack_fixer_function(utilityPath,
options.symbolsPath),
)