зеркало из https://github.com/mozilla/gecko-dev.git
bug 540627 - provide an environment variable to save minidumps from test runs. r=bsmedberg
--HG-- extra : rebase_source : d53ac17a06eb938e1fcd9a59e409b3467c04fed9
This commit is contained in:
Родитель
4f49aefd7d
Коммит
1451ee2e6c
|
@ -36,7 +36,7 @@
|
|||
#
|
||||
# ***** END LICENSE BLOCK ***** */
|
||||
|
||||
import glob, logging, os, subprocess, sys
|
||||
import glob, logging, os, shutil, subprocess, sys
|
||||
import re
|
||||
|
||||
__all__ = [
|
||||
|
@ -118,6 +118,12 @@ def checkForCrashes(dumpDir, symbolsPath, testName=None):
|
|||
else:
|
||||
if not os.path.exists(stackwalkPath):
|
||||
print "MINIDUMP_STACKWALK binary not found: %s" % stackwalkPath
|
||||
dumpSavePath = os.environ.get('MINIDUMP_SAVE_PATH', None)
|
||||
if dumpSavePath:
|
||||
shutil.move(d, dumpSavePath)
|
||||
print "Saved dump as %s" % os.path.join(dumpSavePath,
|
||||
os.path.basename(d))
|
||||
else:
|
||||
os.remove(d)
|
||||
extra = os.path.splitext(d)[0] + ".extra"
|
||||
if os.path.exists(extra):
|
||||
|
|
Загрузка…
Ссылка в новой задаче