Skip to content

Commit bf0de8f

Browse files
committed
MQE-1650: update MFTF configuration to read Test entities from new location
- address reviews
1 parent b83cc00 commit bf0de8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Magento/FunctionalTestingFramework/Util/ModulePathExtractor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ private function splitKeyForParts($key)
8484
private function extractKeyByPath($path)
8585
{
8686
$shortenedPath = dirname(dirname($path));
87-
if ($shortenedPath === '.' || !is_dir($shortenedPath)) {
87+
// Ignore this path if we cannot go to parent directory two levels up
88+
if (empty($shortenedPath) || $shortenedPath === '.') {
8889
return '';
8990
}
9091

0 commit comments

Comments
 (0)