mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 07:14:10 +08:00
run_tests.py: find test executables in an in-Chromium build.
BUG=crashpad:12 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/996433002
This commit is contained in:
parent
55f8f29ace
commit
e1df1599e1
@ -30,7 +30,19 @@ def main(args):
|
|||||||
crashpad_dir = \
|
crashpad_dir = \
|
||||||
os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir)
|
os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir)
|
||||||
|
|
||||||
binary_dir = os.path.join(crashpad_dir, 'out', args[0])
|
# In a standalone Crashpad build, the out directory is in the Crashpad root.
|
||||||
|
out_dir = os.path.join(crashpad_dir, 'out')
|
||||||
|
if not os.path.exists(out_dir):
|
||||||
|
# In an in-Chromium build, the out directory is in the Chromium root, and
|
||||||
|
# the Crashpad root is in third_party/crashpad/crashpad relative to the
|
||||||
|
# Chromium root.
|
||||||
|
chromium_dir = os.path.join(crashpad_dir, os.pardir, os.pardir, os.pardir)
|
||||||
|
out_dir = os.path.join(chromium_dir, 'out')
|
||||||
|
if not os.path.exists(out_dir):
|
||||||
|
raise Exception('could not determine out_dir', crashpad_dir)
|
||||||
|
|
||||||
|
binary_dir = os.path.join(out_dir, args[0])
|
||||||
|
|
||||||
tests = [
|
tests = [
|
||||||
'crashpad_client_test',
|
'crashpad_client_test',
|
||||||
'crashpad_minidump_test',
|
'crashpad_minidump_test',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user