From 6ec0796b5ef5b1959b4ed645bf16059635be4afa Mon Sep 17 00:00:00 2001 From: Tao Li Date: Tue, 6 Feb 2024 14:59:09 +0800 Subject: [PATCH] test: display version when skip Signed-off-by: Tao Li --- tests/e2e/openshift_upgrade_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/openshift_upgrade_test.go b/tests/e2e/openshift_upgrade_test.go index d6f414f20d..d6346f0758 100644 --- a/tests/e2e/openshift_upgrade_test.go +++ b/tests/e2e/openshift_upgrade_test.go @@ -16,6 +16,7 @@ limitations under the License. package e2e import ( + "fmt" "github.com/blang/semver" "github.com/cloudnative-pg/cloudnative-pg/tests" @@ -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")