summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2002-05-22 12:44:21 +0000
committerTomas V.V.Cox <cox@php.net>2002-05-22 12:44:21 +0000
commit613f08a231e0c2a69731dfcd3a94ffd4a6c0f810 (patch)
treeade73092b21006c73381a4e527023c9b25436bd9
parentae126450c9b44ce589e1dca5bed312e94ea71228 (diff)
downloadphp-git-613f08a231e0c2a69731dfcd3a94ffd4a6c0f810.tar.gz
Trigger an error if the run-test.php file is not found
Make the run-tests pear cmd run with the CGI SAPI
-rw-r--r--pear/PEAR/Command/Package.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php
index a4c113487d..0ca6ebcb93 100644
--- a/pear/PEAR/Command/Package.php
+++ b/pear/PEAR/Command/Package.php
@@ -331,9 +331,12 @@ Run regression tests with PHP\'s regression testing script (run-tests.php).',
$run_tests = $this->config->get('php_dir') . DIRECTORY_SEPARATOR . 'run-tests.php';
if (!file_exists($run_tests)) {
$run_tests = PEAR_INSTALL_DIR . DIRECTORY_SEPARATOR . 'run-tests.php';
+ if (!file_exists($run_tests)) {
+ return $this->raiseError("No `run-test.php' file found");
+ }
}
$plist = implode(" ", $params);
- $cmd = "$php -d include_path=$cwd$ps$ip $run_tests $plist";
+ $cmd = "$php -C -d include_path=$cwd$ps$ip -f $run_tests -- $plist";
system($cmd);
return true;
}