dotnet/runtime

dump system log on macos when test run terminates unexpectedly

Ouverte

#98 132 ouverte le 7 févr. 2024

 (5 commentaires) (0 réaction) (1 personne assignée)C# (5 445 forks)batch import
area-Infrastructure-librarieshelp wanted

Métriques du dépôt

Stars
 (17 886 étoiles)
Métriques de merge PR
 (Merge moyen 12j 11h) (661 PRs mergées en 30 j)

Description

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

Guide contributeur