summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2003-06-07 16:45:53 +0000
committerTomas V.V.Cox <cox@php.net>2003-06-07 16:45:53 +0000
commit106a27723979f7f4161340ab5dd1dc003bf2c64e (patch)
treeb5621082d7e149fa228e365b75ab2f4566768150 /pear
parent0a2968a75fd710bf91b12d4e9c10b4932e1b5463 (diff)
downloadphp-git-106a27723979f7f4161340ab5dd1dc003bf2c64e.tar.gz
Added better error message to run-tests
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR/Command/Package.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php
index ed0fb671c6..a8a2c46b0a 100644
--- a/pear/PEAR/Command/Package.php
+++ b/pear/PEAR/Command/Package.php
@@ -442,11 +442,14 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
putenv("TEST_PHP_EXECUTABLE=$php");
$ip = ini_get("include_path");
$ps = OS_WINDOWS ? ';' : ':';
- $run_tests = $this->config->get('php_dir') . DIRECTORY_SEPARATOR . 'run-tests.php';
+ $run_tests = $rtsts = $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-tests.php' file found");
+ return $this->raiseError("No `run-tests.php' file found at $rtsts. You need ".
+ "to copy there the run-tests.php file located ".
+ "inside the sources of your php distribution package, ".
+ "in order to make this command available.");
}
}
$plist = implode(" ", $params);
@@ -650,7 +653,7 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
fwrite($wp, $spec_contents);
fclose($wp);
$this->ui->outputData("Wrote RPM spec file $spec_file", $command);
-
+
return true;
}