From 87ff278db20c09f7c4db0f70f7cc526ea507c7ba Mon Sep 17 00:00:00 2001 From: Eddie Lau Date: Tue, 16 Jun 2015 15:56:19 -0500 Subject: [PATCH] MAGETWO-38482: [Github] Install during integration test fails #1347 - fixed wrong current work directory --- .../framework/Magento/TestFramework/Application.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev/tests/integration/framework/Magento/TestFramework/Application.php b/dev/tests/integration/framework/Magento/TestFramework/Application.php index ba1a17a0ae010..13aefd3cb0531 100644 --- a/dev/tests/integration/framework/Magento/TestFramework/Application.php +++ b/dev/tests/integration/framework/Magento/TestFramework/Application.php @@ -142,6 +142,9 @@ public function __construct( $appMode, AutoloaderInterface $autoloadWrapper ) { + if (getcwd() != BP . '/dev/tests/integration') { + chdir(BP . '/dev/tests/integration'); + } $this->_shell = $shell; $this->installConfigFile = $installConfigFile; $this->_globalConfigDir = realpath($globalConfigDir);