Output macOS crash reports on CI with nicer formatting

This commit is contained in:
Kovid Goyal 2024-01-21 11:56:48 +05:30
parent 8762a939c0
commit e5b27d066c
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 452 additions and 2 deletions

View file

@ -31,8 +31,8 @@ def do_print_crash_reports():
if items:
time.sleep(1)
print(os.path.basename(items[0]))
with open(items[0]) as src:
print(src.read())
sdir = os.path.dirname(os.path.abspath(__file__))
subprocess.check_call([sys.executable, os.path.join(sdir, 'macos_crash_report.py'), items[0]])
else:
run('sh -c "echo bt | coredumpctl debug"')
print(flush=True)