dotnet/runtime

dump system log on macos when test run terminates unexpectedly

Open

#98.132 aperta il 7 feb 2024

Vedi su GitHub
 (5 commenti) (0 reazioni) (1 assegnatario)C# (5445 fork)batch import
area-Infrastructure-librarieshelp wanted

Metriche repository

Star
 (17.886 star)
Metriche merge PR
 (Merge medio 12g 11h) (661 PR mergiate in 30 g)

Descrizione

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).

Guida contributor