Skip to content

Commit c7acda0

Browse files
committed
Pass the $diff to show_result for GHA support
1 parent c4d960e commit c7acda0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

run-tests.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2749,7 +2749,7 @@ function run_test(string $php, $file, array $env): string
27492749
show_file_block('mem', file_get_contents($memcheck_filename));
27502750
}
27512751

2752-
show_result(implode('&', $restype), $tested, $tested_file, $info);
2752+
show_result(implode('&', $restype), $tested, $tested_file, $info, $diff);
27532753

27542754
foreach ($restype as $type) {
27552755
$PHP_FAILED_TESTS[$type . 'ED'][] = [
@@ -3276,7 +3276,8 @@ function show_result(
32763276
string $result,
32773277
string $tested,
32783278
string $tested_file,
3279-
string $extra = ''
3279+
string $extra = '',
3280+
string $diff = ''
32803281
): void {
32813282
global $SHOW_ONLY_GROUPS, $colorize, $github_actions;
32823283

@@ -3303,6 +3304,7 @@ function show_result(
33033304

33043305
if ($github_actions) {
33053306
$title = $tested;
3307+
$message = '';
33063308

33073309
$type = null;
33083310
switch ( $result ) {
@@ -3328,6 +3330,8 @@ function show_result(
33283330
break;
33293331
}
33303332

3333+
$message .= "\n\n{$diff}";
3334+
33313335
if ($type !== null) {
33323336
$title = strtr($title, [
33333337
"%" => '%25',

0 commit comments

Comments
 (0)