From d1dde094f2442b11808bd77bc8b064be3792458a Mon Sep 17 00:00:00 2001 From: Gerard Roche Date: Wed, 20 May 2020 20:20:06 +0100 Subject: run-tests: refactor --- run-tests.php | 77 +++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 29 deletions(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index 51a82aad64..0a2f592c8c 100755 --- a/run-tests.php +++ b/run-tests.php @@ -159,24 +159,14 @@ function main() define('INIT_DIR', getcwd()); - // change into the PHP source directory. + // Change into the PHP source directory. if (getenv('TEST_PHP_SRCDIR')) { @chdir(getenv('TEST_PHP_SRCDIR')); } - define('TEST_PHP_SRCDIR', getcwd()); - if (!function_exists('proc_open')) { - echo <<