Skip to content

Commit fcd2c92

Browse files
committed
Fix version equality check
1 parent 48bd22c commit fcd2c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/scripts/run-bc-upgrade-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ CURRENT_VERSION=$(sed -n 's/^elasticsearch[[:space:]]*=[[:space:]]*\(.*\)/\1/p'
3939
BC_VERSION=$(echo "$MANIFEST" | jq .version)
4040
BC_COMMIT_HASH=$(echo "$MANIFEST" | jq .projects.elasticsearch.commit_hash)
4141

42-
if [ "$CURRENT_VERSION" != "$BC_VERSION" ]; then
42+
if [ "$CURRENT_VERSION-SNAPSHOT" != "$BC_VERSION" ]; then
4343
echo "Version [$BC_VERSION] of BC (or snapshot) does not match current version [$CURRENT_VERSION] of branch [$BUILDKITE_BRANCH]."
4444
echo "Skipping BC upgrade tests."
4545
exit 0

0 commit comments

Comments
 (0)