dotnet/runtime

dump system log on macos when test run terminates unexpectedly

オープン

#98,132 opened on 2024/02/07

 (5 件のコメント) (0 件のリアクション) (1 人の担当者)C# (5,445 件のフォーク)batch import
area-Infrastructure-librarieshelp wanted

Repository metrics

Stars
 (17,886 個のスター)
PR merge metrics
 (平均マージ 12d 11h) (30d で 661 merged PRs)

説明

see context in https://github.com/dotnet/runtime/pull/97624

we want to dump the last few minutes/few tens of lines of the system log when unit tests terminate with an error. dmesg works on Linux, but gets this on macOS

Unable to obtain kernel buffer: Operation not permitted
usage: sudo dmesg

@am11 offered to make it use log on macOS (I don't have hardware to verify on).

コントリビューターガイド