File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/Magento/FunctionalTestingFramework/Suite Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,16 @@ public function generateTestgroupmembership($testManifest)
169
169
170
170
// Path to groups folder
171
171
$ baseDir = FilePathFormatter::format (TESTS_MODULE_PATH );
172
+ $ path = $ baseDir .'_generated/groups ' ;
173
+
174
+ // Read all group files
175
+ if (is_dir ($ path )) {
176
+ $ groupFiles = glob ("$ path/group*.txt " );
177
+ if ($ groupFiles === false ) {
178
+ throw new RuntimeException ("glob(): error with ' $ path' " );
179
+ }
180
+ sort ($ groupFiles , SORT_NATURAL );
181
+ }
172
182
173
183
// Read each file in the reverse order and form an array with groupId as key
174
184
$ groupNumber = 0 ;
@@ -181,7 +191,7 @@ public function generateTestgroupmembership($testManifest)
181
191
// Output file path
182
192
$ memberShipFilePath = $ baseDir .'_generated/testgroupmembership.txt ' ;
183
193
184
- file_put_contents ($ memberShipFilePath , "testing " . PHP_EOL , FILE_APPEND );
194
+ file_put_contents ($ memberShipFilePath , "testing again " . PHP_EOL , FILE_APPEND );
185
195
186
196
}
187
197
You can’t perform that action at this time.
0 commit comments