Skip to content

Commit eed6004

Browse files
author
Cari Spruiell
committed
Merge remote-tracking branch 'api/CICD-2236-Upgrade-Test' into MAGETWO-53121-502-Bad-Gateway
2 parents 334c1df + e6e5437 commit eed6004

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)