Bug 1543447 - Add an env var to disable stack fixing scripts in mozrunner. r=erahm
authorMatt Woodrow <mwoodrow@mozilla.com>
Tue, 03 Sep 2019 03:10:55 +0000
changeset 491283 c0c38c9ed1538110fc7214ef4d818bfa04cb6ce1
parent 491282 b1f7e414bcf04c6ff2baa43bedce71268fbe9788
child 491284 8f7c665a6e3414f7ed6f9eea496d81b5e417360f
push id94295
push usermwoodrow@mozilla.com
push dateTue, 03 Sep 2019 03:19:24 +0000
treeherderautoland@c0c38c9ed153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerserahm
bugs1543447
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1543447 - Add an env var to disable stack fixing scripts in mozrunner. r=erahm Differential Revision: https://phabricator.services.mozilla.com/D44414
testing/mozbase/mozrunner/mozrunner/utils.py
--- a/testing/mozbase/mozrunner/mozrunner/utils.py
+++ b/testing/mozbase/mozrunner/mozrunner/utils.py
@@ -247,16 +247,19 @@ def get_stack_fixer_function(utilityPath
     A stack fixing function checks if a line conforms to the output from
     MozFormatCodeAddressDetails.  If the line does not, the line is returned
     unchanged.  If the line does, an attempt is made to convert the
     file+offset into something human-readable (e.g. a function name).
     """
     if not mozinfo.info.get('debug'):
         return None
 
+    if os.getenv('MOZ_DISABLE_STACK_FIX', 0):
+        return None
+
     def import_stack_fixer_module(module_name):
         sys.path.insert(0, utilityPath)
         module = __import__(module_name, globals(), locals(), [])
         sys.path.pop(0)
         return module
 
     if symbolsPath and os.path.exists(symbolsPath):
         # Run each line through a function in fix_stack_using_bpsyms.py (uses breakpad