-
Notifications
You must be signed in to change notification settings - Fork 6k
Add a run_tests flag that captures core dumps from engine unit tests and runs a GDB script #27742
Add a run_tests flag that captures core dumps from engine unit tests and runs a GDB script #27742
Conversation
testing/run_tests.py
Outdated
| import glob | ||
| import os | ||
| import re | ||
| import resource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this doesn't exist on Windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this to only set the core dump ulimit on Linux
(In theory this approach could also work on macOS. But the directory that holds core dumps on macOS is not writable by the jobs on the LUCI bots).
fc270b3 to
095cd9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm w/ nits
|
|
||
|
|
||
| def RunCCTests(build_dir, filter, coverage): | ||
| try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove extra newline above.
| ]) | ||
| os.unlink(core_path) | ||
| raise | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: need two newlines between functions
…and runs a GDB script The output of the GDB script will be placed in a directory that can be uploaded to cloud storage by the LUCI recipe.
095cd9b to
3723a22
Compare
…t tests and runs a GDB script (flutter/engine#27742)
…t tests and runs a GDB script (flutter/engine#27742)
…t tests and runs a GDB script (flutter/engine#27742)
…and runs a GDB script (flutter#27742)
…and runs a GDB script (flutter#27742)
The output of the GDB script will be placed in a directory that can be
uploaded to cloud storage by the LUCI recipe.