From 8b9d95e8b5a13cb8fc2714adc20bbba49fb17d16 Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Sat, 7 Dec 2024 10:17:04 -0500 Subject: [PATCH] Fix pathological test suite failing not loading extensions in CI --- tests/pathological/test.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/pathological/test.php b/tests/pathological/test.php index 83936ec731..a911f3a336 100755 --- a/tests/pathological/test.php +++ b/tests/pathological/test.php @@ -291,7 +291,12 @@ $timeout = \max(5, \min(60, $timeout)); } - $command = ['php', '-n', 'convert.php']; + if (isset($_ENV['CI']) || isset($_SERVER['CI'])) { + $command = ['php', 'convert.php']; + } else { + $command = ['php', '-n', 'convert.php']; + } + if (isset($case['extension'])) { $command[] = $case['extension']; }