Skip to content

Commit ab30195

Browse files
authored
Skip standalone upgrade test for versions with matching hash (#4373)
Snapshots can have matching commit hash on daily builds.
1 parent e1070ef commit ab30195

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

testing/integration/upgrade_standalone_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ func testStandaloneUpgrade(t *testing.T, startVersion *version.ParsedSemVer, end
7070
endFixture, err := define.NewFixture(t, endVersion)
7171
require.NoError(t, err)
7272

73+
startVersionInfo, err := startFixture.ExecVersion(ctx)
74+
require.NoError(t, err)
75+
endVersionInfo, err := endFixture.ExecVersion(ctx)
76+
require.NoError(t, err)
77+
if startVersionInfo.Binary.Commit == endVersionInfo.Binary.Commit {
78+
t.Skipf("both start and end versions have the same hash %q, skipping...", startVersionInfo.Binary.Commit)
79+
return
80+
}
81+
7382
err = upgradetest.PerformUpgrade(ctx, startFixture, endFixture, t, upgradetest.WithUnprivileged(unprivileged))
7483
assert.NoError(t, err)
7584
}

0 commit comments

Comments
 (0)