Skip to content

Commit

Permalink
Index groups from 1 to match robo-paracept.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinthakagodawita committed Jul 10, 2020
1 parent f74b431 commit 5779e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TimeSplitterTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ public function run(): Result
}

$groupIdx = null;
foreach ($groups as $groupIdx => $tests) {
foreach ($groups as $idx => $tests) {
if (\count($tests) === 0) {
break;
}

$groupIdx = $idx + 1;
$fileName = $this->groupOutputLoc . $groupIdx;
$this->printTaskInfo("Writing group {$groupIdx} to: $fileName");
$success = file_put_contents($fileName, implode("\n", $tests));
Expand Down

0 comments on commit 5779e17

Please sign in to comment.