Skip to content

Commit 91ca5ad

Browse files
author
Alexander Paliarush
committed
CICD-2236: S2 builds are broken after bamboo migration
1 parent 4b6e1da commit 91ca5ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev/tests/functional/tests/app/Magento/Upgrade/Test/TestCase/UpgradeSystemTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ public function test(
8181
. "(-{$preReleaseVersion}(\\.{$preReleaseVersion})*)?"
8282
. "(\\+{$buildVersion}(\\.{$buildVersion})*)?{$suffix}/";
8383

84-
if (preg_match($versionPattern, $version, $out)) {
85-
$version = array_shift($out);
84+
if (preg_match($versionPattern, $version)) {
85+
preg_match("/(.*){$suffix}/", $version, $matches);
86+
$version = $matches[1];
8687
} else {
8788
$this->fail(
8889
"Provided version format does not comply with semantic versioning specification. Got '{$version}'"

0 commit comments

Comments
 (0)