mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:26:06 +00:00
Ensure _NT_SYMBOL_PATH is set for bot runs in cdb test
Getting closer... Some tests passed on the last run, but the ones that rely on having ntdll symbols fail on the bot. With `_NT_SYMBOL_PATH` set, cdb will be able to download the PDBs so will be able to dump data for `ntdll!_PEB`, etc. R=mark@chromium.org BUG=crashpad:46 Review URL: https://codereview.chromium.org/1402643002 .
This commit is contained in:
parent
d7ee79cb36
commit
c3f4e2d8eb
@ -195,6 +195,12 @@ def main(args):
|
||||
print >>sys.stderr, 'could not find cdb'
|
||||
return 1
|
||||
|
||||
# Make sure we can download Windows symbols.
|
||||
if not os.environ.get('_NT_SYMBOL_PATH'):
|
||||
symbol_dir = MakeTempDir()
|
||||
os.environ['_NT_SYMBOL_PATH'] = (
|
||||
'SRV*' + symbol_dir + '*https://msdl.microsoft.com/download/symbols')
|
||||
|
||||
pipe_name = r'\\.\pipe\end-to-end_%s_%s' % (
|
||||
os.getpid(), str(random.getrandbits(64)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user