Skip to content

Commit

Permalink
test: display version when skip
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Li <[email protected]>
  • Loading branch information
litaocdl committed Apr 17, 2024
1 parent 1528600 commit 6ec0796
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/openshift_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ limitations under the License.
package e2e

import (
"fmt"
"github.com/blang/semver"

"github.com/cloudnative-pg/cloudnative-pg/tests"
Expand Down Expand Up @@ -165,7 +166,8 @@ var _ = Describe("Upgrade Paths on OpenShift", Label(tests.LabelUpgrade), Ordere

It("stable-v1 to alpha, currently version 1.22", func() {
if ocpVersion.GT(ocp412) {
Skip("This test runs only on OCP 4.12 or lower")
Skip(fmt.Sprintf("This test runs only on OCP 4.12 or lower, current version is %s",
ocpVersion.String()))
}
DeferCleanup(cleanupOpenshift)
applyUpgrade("stable-v1", "alpha")
Expand Down

0 comments on commit 6ec0796

Please sign in to comment.