Skip to content

Commit

Permalink
Fix regression test raw data sorting.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweeden committed May 31, 2024
1 parent 77e034b commit a7ae711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/regression/lib/TestHarness/RegressionTestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,9 @@ public function checkRawData($testName, array $input, $sort = false)
);
$data = str_replace("\x1e", '', $response[0]);
if ($sort) {
$lines = explode("\n", $data);
$lines = explode("\n", rtrim($data));
sort($lines);
$data = implode("\n", $lines);
$data = implode("\n", $lines) . "\n";
}
$data = preg_replace(self::$replaceRegex, self::$replacements, $data);
if (getenv('REG_TEST_FORCE_GENERATION') === '1') {
Expand Down

0 comments on commit a7ae711

Please sign in to comment.