File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
dev/tests/functional/testsuites/Magento/Mtf/TestSuite Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,17 @@ private function initObjectManager()
98
98
99
99
/** @var \Magento\Mtf\Config\DataInterface $configData */
100
100
$ configData = $ objectManagerFactory ->getObjectManager ()->create (\Magento \Mtf \Config \TestRunner::class);
101
- $ configData ->setFileName ($ configFileName . '.xml ' )->load ($ configFilePath );
102
-
101
+ $ filter = getopt ('' , ['filter: ' ]);
102
+ if (!isset ($ filter ['filter ' ])) {
103
+ $ configData ->setFileName ($ configFileName . '.xml ' )->load ($ configFilePath );
104
+ } else {
105
+ $ isValid = preg_match ('`variation::(.*?)$` ' , $ filter ['filter ' ], $ variation );
106
+ if ($ isValid === 1 ) {
107
+ $ configData ->setFileName ($ configFileName . '.xml ' )->load ($ configFilePath );
108
+ $ data ['rule ' ]['variation ' ]['allow ' ][0 ]['name ' ][0 ]['value ' ] = $ variation [1 ];
109
+ $ configData ->merge ($ data );
110
+ }
111
+ }
103
112
$ this ->objectManager = $ objectManagerFactory ->create (
104
113
[\Magento \Mtf \Config \TestRunner::class => $ configData ]
105
114
);
You can’t perform that action at this time.
0 commit comments