From 9673079903306d0408ed66359f15c49ec2d53907 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois <2144837+alexandre-daubois@users.noreply.github.com> Date: Fri, 8 Aug 2025 19:16:32 +0200 Subject: [PATCH] Fix GH-18404: Display diff when a single test is run (GH-19400) --- run-tests.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run-tests.php b/run-tests.php index 03616272567..6c31c1d0187 100755 --- a/run-tests.php +++ b/run-tests.php @@ -688,6 +688,10 @@ function main(): void // Run selected tests. $test_cnt = count($test_files); + if ($test_cnt === 1) { + $cfg['show']['diff'] = true; + } + verify_config($php); write_information($user_tests, $phpdbg);