Show skip reason in build summary

This commit is contained in:
Nico Elbers 2024-06-05 03:57:38 +02:00
parent bf588efbe6
commit fc6ff3af11
No known key found for this signature in database
GPG Key ID: 519CE81FDA71EE73

View File

@ -839,7 +839,12 @@ fn printStepStatus(
},
.skipped, .skipped_oom => |skip| {
try ttyconf.setColor(stderr, .yellow);
try stderr.writeAll(" skipped");
try stderr.writeAll(" skipped: ");
if (s.result_skip_reason) |reason| {
try stderr.writeAll(reason);
} else {
try stderr.writeAll("Unspecified");
}
if (skip == .skipped_oom) {
try stderr.writeAll(" (not enough memory)");
try ttyconf.setColor(stderr, .dim);