zoe Wed, 22 Jul 2009 10:44:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=284591
Log:
Adding PHP test executable name to the env that is passed to the test runner
Changed paths:
U php/phpruntests/trunk/src/testrun/rtPhpTestRun.php
Modified: php/phpruntests/trunk/src/testrun/rtPhpTestRun.php
===================================================================
--- php/phpruntests/trunk/src/testrun/rtPhpTestRun.php 2009-07-22 10:38:48 UTC
(rev 284590)
+++ php/phpruntests/trunk/src/testrun/rtPhpTestRun.php 2009-07-22 10:44:08 UTC
(rev 284591)
@@ -31,6 +31,7 @@
$runConfiguration->getUserEnvironment();
$runConfiguration->configure();
+
//Check help message
if($runConfiguration->hasCommandLineOption('help') ||
$runConfiguration->hasCommandLineOption('h')) {
echo rtText::get('help');
@@ -43,6 +44,12 @@
// $preConditionList->check($this->commandLine,
$this->environmentVariables);
$preConditionList->check($runConfiguration);
+
+ //Write PHP executable name to the array of env variables. Some
+ //test cases expect to be able to use it.
+ $php = $runConfiguration->getSetting('PhpExecutable');
+ $runConfiguration->setEnvironmentVariable('TEST_PHP_EXECUTABLE', $php);
+
if ($runConfiguration->getSetting('TestDirectories') != null) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php