From 25abf2f028171fd89627824ef2c98090a2802361 Mon Sep 17 00:00:00 2001 From: Francois Laupretre Date: Sat, 24 Oct 2015 19:51:28 +0200 Subject: Fix bug #70781 (Extension tests fail on dynamic ext dependency) --- run-tests.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index a607f1cda2..bc9de7fdcf 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1539,18 +1539,6 @@ TEST $file // Default ini settings $ini_settings = array(); - // additional ini overwrites - //$ini_overwrites[] = 'setting=value'; - settings2array($ini_overwrites, $ini_settings); - - // Any special ini settings - // these may overwrite the test defaults... - if (array_key_exists('INI', $section_text)) { - if (strpos($section_text['INI'], '{PWD}') !== false) { - $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']); - } - settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings); - } // Additional required extensions if (array_key_exists('EXTENSIONS', $section_text)) { @@ -1564,6 +1552,19 @@ TEST $file } } + // additional ini overwrites + //$ini_overwrites[] = 'setting=value'; + settings2array($ini_overwrites, $ini_settings); + + // Any special ini settings + // these may overwrite the test defaults... + if (array_key_exists('INI', $section_text)) { + if (strpos($section_text['INI'], '{PWD}') !== false) { + $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']); + } + settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings); + } + settings2params($ini_settings); // Check if test should be skipped. -- cgit v1.2.1