Ejegg has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/363198 )
Change subject: WIP try to fix environment ...................................................................... WIP try to fix environment Change-Id: Id888e71ecd4070d560f012fb050a01d7bbbc4d23 --- M sites/default/civicrm/extensions/org.wikimedia.omnimail/tests/phpunit/bootstrap.php 1 file changed, 7 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm refs/changes/98/363198/1 diff --git a/sites/default/civicrm/extensions/org.wikimedia.omnimail/tests/phpunit/bootstrap.php b/sites/default/civicrm/extensions/org.wikimedia.omnimail/tests/phpunit/bootstrap.php index da3ae80..d3acdb9 100644 --- a/sites/default/civicrm/extensions/org.wikimedia.omnimail/tests/phpunit/bootstrap.php +++ b/sites/default/civicrm/extensions/org.wikimedia.omnimail/tests/phpunit/bootstrap.php @@ -20,7 +20,13 @@ $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); - $process = proc_open($cmd, $descriptorSpec, $pipes, __DIR__); + $env = $_ENV + array( + "PATH" => getenv("PATH"), + "CIVICRM_SETTINGS" => getenv("CIVICRM_SETTINGS"), + "CV_OUTPUT" => "json", + "CV_CONFIG" => __DIR__ . '/cv.json', + ); + $process = proc_open($cmd, $descriptorSpec, $pipes, __DIR__, $env); putenv("CV_OUTPUT=$oldOutput"); fclose($pipes[0]); $result = stream_get_contents($pipes[1]); -- To view, visit https://gerrit.wikimedia.org/r/363198 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id888e71ecd4070d560f012fb050a01d7bbbc4d23 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/crm Gerrit-Branch: master Gerrit-Owner: Ejegg <ej...@ejegg.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits