From 0dfacb53812098da4f5258e04401c296e14aa5d1 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 8 Aug 2025 10:08:43 +0200 Subject: [PATCH] Fix GH-18404: Display diff when a single test is run --- run-tests.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run-tests.php b/run-tests.php index 036162725673f..6c31c1d0187d9 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);